Home | History | Annotate | Download | only in core

Lines Matching refs:ancestor

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