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

Issue 18167006: Implement Custom Elements' entered and left document callbacks. (Closed)

Created:
7 years, 5 months ago by dominicc (has gone to gerrit)
Modified:
7 years, 5 months ago
Reviewers:
haraken, Yuta Kitamura
CC:
blink-reviews, Nils Barth (inactive), jsbell+bindings_chromium.org, webcomponents-bugzilla_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, dominicc+watchlist_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, do-not-use
Visibility:
Public.

Description

Implement Custom Elements' entered and left document callbacks. This is based on the proposal being discussed on this bug: <https://www.w3.org/Bugs/Public/show_bug.cgi?id=22565>; Because one method call can tickle these callbacks for multiple custom elements, the processing stack is now fully armed and operational. This adds tests for more exotic recursion on the processing stack. The processing stack is proposed on this bug: <https://www.w3.org/Bugs/Public/show_bug.cgi?id=22459>; BUG=247166 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153662

Patch Set 1 #

Patch Set 2 : Remove test comment scree. #

Patch Set 3 : Move callbacks reference into invocation. #

Total comments: 2

Patch Set 4 : Feedback #

Total comments: 7

Patch Set 5 : Feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -79 lines) Patch
A LayoutTests/fast/dom/custom/processing-stack-recursion.html View 1 2 3 4 1 chunk +157 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/custom/processing-stack-recursion-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/v8/CustomElementConstructorBuilder.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/bindings/v8/V8CustomElementLifecycleCallbacks.h View 1 chunk +8 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp View 1 2 3 4 chunks +80 lines, -13 lines 0 comments Download
M Source/bindings/v8/V8HiddenPropertyName.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8NodeCustom.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/CustomElementCallbackDispatcher.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/dom/CustomElementCallbackDispatcher.cpp View 1 2 3 4 2 chunks +46 lines, -18 lines 0 comments Download
M Source/core/dom/CustomElementCallbackInvocation.h View 1 2 3 4 1 chunk +16 lines, -5 lines 0 comments Download
M Source/core/dom/CustomElementCallbackInvocation.cpp View 1 2 3 4 1 chunk +70 lines, -21 lines 0 comments Download
M Source/core/dom/CustomElementCallbackQueue.h View 1 2 3 chunks +2 lines, -5 lines 0 comments Download
M Source/core/dom/CustomElementCallbackQueue.cpp View 1 2 2 chunks +6 lines, -7 lines 0 comments Download
M Source/core/dom/CustomElementLifecycleCallbacks.h View 1 2 3 4 1 chunk +11 lines, -3 lines 0 comments Download
M Source/core/dom/Element.cpp View 2 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
dominicc (has gone to gerrit)
This is a bit rough around the edges; the plan next is to make this ...
7 years, 5 months ago (2013-07-06 17:42:14 UTC) #1
dominicc (has gone to gerrit)
PTAL yutak: core/dom haraken: bindings/v8 Adding the registration context object will come later. I have ...
7 years, 5 months ago (2013-07-08 01:18:23 UTC) #2
dominicc (has gone to gerrit)
Hmm... bots are failing to apply the patch for no apparent reason. :/
7 years, 5 months ago (2013-07-08 01:24:54 UTC) #3
haraken
Binding implementation LGTM, but I'm not familiar with the design of custom elements. dimitri might ...
7 years, 5 months ago (2013-07-08 01:30:05 UTC) #4
dominicc (has gone to gerrit)
Thank you for the quick review. On 2013/07/08 01:30:05, haraken wrote: > https://codereview.chromium.org/18167006/diff/5001/Source/bindings/v8/V8CustomElementLifecycleCallbacks.h#newcode65 > Source/bindings/v8/V8CustomElementLifecycleCallbacks.h:65: ...
7 years, 5 months ago (2013-07-08 01:45:27 UTC) #5
Yuta Kitamura
Looks legit; mostly style comments. https://codereview.chromium.org/18167006/diff/10003/LayoutTests/fast/dom/custom/processing-stack-recursion.html File LayoutTests/fast/dom/custom/processing-stack-recursion.html (right): https://codereview.chromium.org/18167006/diff/10003/LayoutTests/fast/dom/custom/processing-stack-recursion.html#newcode50 LayoutTests/fast/dom/custom/processing-stack-recursion.html:50: } I see a ...
7 years, 5 months ago (2013-07-08 03:40:49 UTC) #6
dominicc (has gone to gerrit)
Thanks for the detailed comments! All done. (Keeping the CustomElementLifecycleCallback methods reflecting the spec names ...
7 years, 5 months ago (2013-07-08 04:21:32 UTC) #7
Yuta Kitamura
lgtm
7 years, 5 months ago (2013-07-08 04:33:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/18167006/17002
7 years, 5 months ago (2013-07-08 04:49:36 UTC) #9
commit-bot: I haz the power
7 years, 5 months ago (2013-07-08 06:29:18 UTC) #10
Message was sent while issue was closed.
Change committed as 153662

Powered by Google App Engine
This is Rietveld 408576698