Home | History | Annotate | Download | only in editing

Lines Matching refs:ancestor

139     // On exiting this loop, clonedAncestor is the lowest ancestor
163 // Split the tree up the ancestor chain until the topBlockquote
164 // Throughout this loop, clonedParent is the clone of ancestor's parent.
165 // This is so we can clone ancestor's siblings and place the clones
166 // into the clone corresponding to the ancestor's parent.
167 RefPtr<Element> ancestor;
169 for (ancestor = ancestors.first(), clonedParent = clonedAncestor->parentElement();
170 ancestor && ancestor != topBlockquote;
171 ancestor = ancestor->parentElement(), clonedParent = clonedParent->parentElement())
172 moveRemainingSiblingsToNewParent(ancestor->nextSibling(), 0, clonedParent);