Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Issue 1759553005: Replace cloneNodeAndAssociate with Element::cloneElementWithChildren (Closed)

Created:
4 years, 9 months ago by fs
Modified:
4 years, 9 months ago
Reviewers:
pdr., Stephen Chennney
CC:
fs, blink-reviews, chromium-reviews, krit, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@svg-useelm-shadowbuilder-cleanup-6
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -19 lines) Patch
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 1 2 chunks +16 lines, -19 lines 2 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 9 (3 generated)
fs
4 years, 9 months ago (2016-03-03 16:31:52 UTC) #2
Stephen Chennney
LGTM. It reduces redundant code nicely. https://codereview.chromium.org/1759553005/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp File third_party/WebKit/Source/core/svg/SVGUseElement.cpp (right): https://codereview.chromium.org/1759553005/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp#newcode368 third_party/WebKit/Source/core/svg/SVGUseElement.cpp:368: ASSERT(!(targetIterator != targetRange.end())); ...
4 years, 9 months ago (2016-03-03 16:42:01 UTC) #3
fs
https://codereview.chromium.org/1759553005/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp File third_party/WebKit/Source/core/svg/SVGUseElement.cpp (right): https://codereview.chromium.org/1759553005/diff/20001/third_party/WebKit/Source/core/svg/SVGUseElement.cpp#newcode368 third_party/WebKit/Source/core/svg/SVGUseElement.cpp:368: ASSERT(!(targetIterator != targetRange.end())); On 2016/03/03 at 16:42:01, Stephen Chenney ...
4 years, 9 months ago (2016-03-03 16:59:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759553005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759553005/20001
4 years, 9 months ago (2016-03-03 17:56:37 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-03 18:49:19 UTC) #7
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 18:51:00 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a47da5d1abada9975960e42de6d6f642d22a9322
Cr-Commit-Position: refs/heads/master@{#379046}

Powered by Google App Engine
This is Rietveld 408576698