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

Issue 173303004: Clone template contents in importNode (Closed)

Created:
6 years, 10 months ago by rwlbuis
Modified:
6 years, 7 months ago
CC:
blink-reviews, sof, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Clone template contents in importNode The template element has no children but contains content, the old importNode behavior only does classical child traversal so special case template elements to import its contents in addition to the normal traversal, like HTMLTemplateElement cloneNode implementation does. Refactor the children traversal importNode into a helper method for better readability and reuse. BUG=341672 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167698

Patch Set 1 #

Patch Set 2 : Also clone children as normal for template #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -18 lines) Patch
M Source/core/dom/Document.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 4 chunks +22 lines, -18 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rwlbuis
PTAL
6 years, 10 months ago (2014-02-21 20:11:50 UTC) #1
dominicc (has gone to gerrit)
LGTM Why do we have separate code paths for importing and cloning nodes if the ...
6 years, 10 months ago (2014-02-24 05:13:02 UTC) #2
rwlbuis
On 2014/02/24 05:13:02, dominicc wrote: > LGTM > > Why do we have separate code ...
6 years, 10 months ago (2014-02-24 12:34:32 UTC) #3
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 10 months ago (2014-02-24 12:34:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/173303004/50001
6 years, 10 months ago (2014-02-24 12:34:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/173303004/50001
6 years, 10 months ago (2014-02-24 13:33:28 UTC) #6
commit-bot: I haz the power
Change committed as 167698
6 years, 10 months ago (2014-02-24 18:46:22 UTC) #7
adamk
Thanks for the fix, but please add a test for this change (and ideally push ...
6 years, 10 months ago (2014-02-24 18:55:59 UTC) #8
rafaelw
Why wasn't a layout test included with this patch?
6 years, 7 months ago (2014-05-02 22:04:14 UTC) #9
dominicc (has gone to gerrit)
Yes, it should have a layout test. I suppose I mentally bucketed this as "refactoring" ...
6 years, 7 months ago (2014-05-03 00:11:24 UTC) #10
rwlbuis
On 2014/05/03 00:11:24, dominicc wrote: > Yes, it should have a layout test. I suppose ...
6 years, 7 months ago (2014-05-03 02:43:11 UTC) #11
rwlbuis
6 years, 7 months ago (2014-05-04 15:28:07 UTC) #12
Message was sent while issue was closed.
On 2014/05/03 02:43:11, rwlbuis wrote:
> On 2014/05/03 00:11:24, dominicc wrote:
> > Yes, it should have a layout test. I suppose I mentally bucketed this as
> > "refactoring" but it is not. Rob, did you subsequently write a test for
> > this?
> > On May 3, 2014 7:04 AM, <mailto:rafaelw@chromium.org> wrote:
> > 
> > > Why wasn't a layout test included with this patch?
> > >
> > > https://codereview.chromium.org/173303004/
> > >
> > 
> > To unsubscribe from this group and stop receiving emails from it, send an
> email
> > to mailto:blink-reviews+unsubscribe@chromium.org.
> 
> Sure I'll try to come up with a test.

Wait! It seems a test was added:

https://codereview.chromium.org/180293002

Let me know if that is enough.

Powered by Google App Engine
This is Rietveld 408576698