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

Issue 18258003: Pow __proto__, sock :unresolved, and clunk the created callback at once. (Closed)

Created:
7 years, 5 months ago by dominicc (has gone to gerrit)
Modified:
7 years, 5 months ago
Reviewers:
haraken, esprehn
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

Pow __proto__, sock :unresolved, and clunk the created callback at once. This aligns the timing of the Custom Elements __proto__ swizzle, changed applicability of the :unresolved pseudoclass, and call to the created callback. Now instanceof, :unresolved and a Custom Element having had a chance to initialize itself are all consistent. This changes the order in which the created callbacks of parser-created Custom Elements are processed to be reverse document order, per a proposal being discussed on this bug: <https://www.w3.org/Bugs/Public/show_bug.cgi?id=22459>; For now, the created callbacks of upgrade candidates continues to be processed in whimsical order (specfically, HashSet iteration order). BUG=234509 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153558

Patch Set 1 #

Total comments: 3

Patch Set 2 : Simpler wrapper handling. #

Patch Set 3 : Use a vector for upgrade candidates. #

Total comments: 2

Patch Set 4 : Feedback => improvements. #

Patch Set 5 : Dreaded base files missing; re-uploading. #

Patch Set 6 : Change flag order per feedback on IM #

Patch Set 7 : Try to be nicer to MSVC. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -83 lines) Patch
M LayoutTests/fast/dom/custom/created-callback.html View 1 chunk +39 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/custom/created-callback-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/custom/lifecycle-created-creation-api.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/custom/lifecycle-created-creation-api-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/custom/lifecycle-created-innerHTML.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/custom/lifecycle-created-innerHTML-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/custom/lifecycle-created-paste.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/custom/lifecycle-created-paste-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/CustomElementConstructorBuilder.h View 2 chunks +1 line, -2 lines 0 comments Download
M Source/bindings/v8/CustomElementConstructorBuilder.cpp View 1 2 3 2 chunks +1 line, -12 lines 0 comments Download
M Source/bindings/v8/CustomElementHelpers.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8CustomElementLifecycleCallbacks.h View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp View 1 2 3 4 5 6 5 chunks +30 lines, -17 lines 0 comments Download
M Source/core/dom/CustomElementCallbackDispatcher.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/CustomElementRegistry.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/CustomElementRegistry.cpp View 1 2 3 2 chunks +5 lines, -10 lines 0 comments Download
M Source/core/dom/CustomElementUpgradeCandidateMap.h View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M Source/core/dom/CustomElementUpgradeCandidateMap.cpp View 1 2 3 chunks +11 lines, -16 lines 0 comments Download
M Source/core/dom/Element.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
Source/core/dom/Element.cpp View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dominicc (has gone to gerrit)
This assumes Issue 18592004 goes first.
7 years, 5 months ago (2013-07-03 10:48:54 UTC) #1
esprehn
https://codereview.chromium.org/18258003/diff/1/Source/core/dom/CustomElementRegistry.cpp File Source/core/dom/CustomElementRegistry.cpp (right): https://codereview.chromium.org/18258003/diff/1/Source/core/dom/CustomElementRegistry.cpp#newcode140 Source/core/dom/CustomElementRegistry.cpp:140: CustomElementUpgradeCandidateMap::ElementSet upgradeCandidates = m_candidates.takeUpgradeCandidatesFor(definition.get()); Why does this use an ...
7 years, 5 months ago (2013-07-04 00:54:57 UTC) #2
esprehn
https://codereview.chromium.org/18258003/diff/1/Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp File Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp (right): https://codereview.chromium.org/18258003/diff/1/Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp#newcode109 Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp:109: receiver = v8::Handle<v8::Object>::Cast(elementHandle); Just use toV8(...).As<v8::Object>() it'll ASSERT and ...
7 years, 5 months ago (2013-07-04 01:01:24 UTC) #3
dominicc (has gone to gerrit)
PTAL.
7 years, 5 months ago (2013-07-04 01:22:30 UTC) #4
esprehn
https://codereview.chromium.org/18258003/diff/10001/Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp File Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp (right): https://codereview.chromium.org/18258003/diff/10001/Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp#newcode48 Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp:48: prototype->SetHiddenValue(V8HiddenPropertyName::customElementCreated(), created); I don't think this can work, what ...
7 years, 5 months ago (2013-07-04 01:29:00 UTC) #5
dominicc (has gone to gerrit)
Thanks! And thank you for teaching me this: <http://herbsutter.com/2008/01/01/gotw-88-a-candidate-for-the-most-important-const/> Feedback done. Brought to ToT; codereview ...
7 years, 5 months ago (2013-07-04 03:03:13 UTC) #6
esprehn
LGTM
7 years, 5 months ago (2013-07-04 03:06:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/18258003/26001
7 years, 5 months ago (2013-07-04 03:14:16 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-04 04:28:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/18258003/36001
7 years, 5 months ago (2013-07-04 04:53:21 UTC) #10
commit-bot: I haz the power
7 years, 5 months ago (2013-07-04 06:39:59 UTC) #11
Message was sent while issue was closed.
Change committed as 153558

Powered by Google App Engine
This is Rietveld 408576698