Home | History | Annotate | Download | only in editing

Lines Matching refs:targetNode

1047 void ApplyStyleCommand::pushDownInlineStyleAroundNode(EditingStyle* style, Node* targetNode)
1049 HTMLElement* highestAncestor = highestAncestorWithConflictingInlineStyle(style, targetNode);
1053 // The outer loop is traversing the tree vertically from highestAncestor to targetNode
1055 // Along the way, styled elements that contain targetNode are removed and accumulated into elementsToPushDown.
1056 // Each child of the removed element, exclusing ancestors of targetNode, is then wrapped by clones of elements in elementsToPushDown.
1058 while (current && current != targetNode && current->contains(targetNode)) {
1077 if (!child->contains(targetNode) && elementsToPushDown.size()) {
1085 // Apply style to all nodes containing targetNode and their siblings but NOT to targetNode
1087 if (child != targetNode || styledElement)
1090 // We found the next node for the outer loop (contains targetNode)
1091 // When reached targetNode, stop the outer loop upon the completion of the current inner loop
1092 if (child == targetNode || child->contains(targetNode))