Home | History | Annotate | Download | only in core

Lines Matching refs:ancestor

134             // Trace back up to a common ancestor, restoring to get our current state to match that
135 // of the ancestor, and saving a list of nodes whose state we need to apply to get to
136 // the target (we can restore up to the ancestor immediately, but we'll need to return
140 Node* ancestor = targetNode;
141 while (tmp != ancestor) {
143 uint16_t targetLevel = ancestor->fLevel;
150 fNodes.push(ancestor);
151 ancestor = ancestor->fParent;
155 if (ancestor->fFlags & Node::kSave_Flag) {
156 if (fCurrentNode != ancestor) { fCanvas->restore(); }
157 if (targetNode != ancestor) { fCanvas->save(SkCanvas::kClip_SaveFlag); }
159 fCurrentNode = ancestor;