Home | History | Annotate | Download | only in editing

Lines Matching refs:targetNode

967 void ApplyStyleCommand::pushDownInlineStyleAroundNode(EditingStyle* style, Node* targetNode)
969 HTMLElement* highestAncestor = highestAncestorWithConflictingInlineStyle(style, targetNode);
973 // The outer loop is traversing the tree vertically from highestAncestor to targetNode
975 // Along the way, styled elements that contain targetNode are removed and accumulated into elementsToPushDown.
976 // Each child of the removed element, exclusing ancestors of targetNode, is then wrapped by clones of elements in elementsToPushDown.
978 while (current != targetNode) {
980 ASSERT(current->contains(targetNode));
998 if (!child->contains(targetNode) && elementsToPushDown.size()) {
1008 // Apply text decoration to all nodes containing targetNode and their siblings but NOT to targetNode
1010 if (child != targetNode || styledElement)
1013 // We found the next node for the outer loop (contains targetNode)
1014 // When reached targetNode, stop the outer loop upon the completion of the current inner loop
1015 if (child == targetNode || child->contains(targetNode))