DescriptionReplace cloneNodeAndAssociate with Element::cloneElementWithChildren
Use the Element::cloneElementWithChildren to do a "straight" clone, and
then post-process it to associate the cloned nodes with their
corresponding elements.
Move the call to removeDisallowedElementsFromSubtree() into the cloning
sequence since it will have nothing to do if there's no target. The
root has already been verified to be "allowed", so the different
starting element makes no difference on the result.
BUG=589682
Committed: https://crrev.com/a47da5d1abada9975960e42de6d6f642d22a9322
Cr-Commit-Position: refs/heads/master@{#379046}
Patch Set 1 #Patch Set 2 : Fix ASSERT-expression #
Total comments: 2
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 9 (3 generated)
|