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

Issue 14776002: Create wrappers for unresolved Custom Elements at the correct type (Closed)

Created:
7 years, 7 months ago by dominicc (has gone to gerrit)
Modified:
7 years, 7 months ago
Reviewers:
haraken, dglazkov
CC:
blink-reviews, Nate Chapin, jsbell+bindings_chromium.org, abarth-chromium
Visibility:
Public.

Description

Create wrappers for unresolved Custom Elements at the correct type The Custom Elements spec Section 5 [1] says that elements which look like Custom Elements, but which don't have a definition yet, should be wrapped at HTMLElement for HTML elements with custom tags and SVGElement for SVG elements with custom tags. This rejigs the Custom Element creation code to always create an element for a custom tag, even ones without a definition, and to wrap those elements directly (HTMLElement) instead of as fallback elements (HTMLUnknownElement.) [1] <https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#registering-custom-elements>; BUG=233775 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149584

Patch Set 1 #

Total comments: 9

Patch Set 2 : Spit n' polish #

Patch Set 3 : Use toV8 in the constructor. Remove unused variable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -63 lines) Patch
M LayoutTests/fast/dom/custom/document-register-namespace.html View 1 chunk +6 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/custom/document-register-namespace-expected.txt View 1 chunk +6 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/custom/document-register-type-extensions.html View 4 chunks +8 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/custom/document-register-type-extensions-expected.txt View 3 chunks +8 lines, -4 lines 0 comments Download
M Source/bindings/v8/CustomElementHelpers.h View 1 2 2 chunks +28 lines, -13 lines 0 comments Download
M Source/bindings/v8/CustomElementHelpers.cpp View 1 2 4 chunks +52 lines, -5 lines 0 comments Download
M Source/bindings/v8/custom/V8CustomElementConstructorCustom.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/CustomElementRegistry.h View 2 chunks +6 lines, -3 lines 0 comments Download
M Source/core/dom/CustomElementRegistry.cpp View 1 3 chunks +7 lines, -6 lines 0 comments Download
M Source/core/dom/Document.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 3 chunks +17 lines, -15 lines 0 comments Download
M Source/core/scripts/make_names.pl View 2 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dominicc (has gone to gerrit)
We will now ford the muddiest swamp on the road to element upgrade. The existing ...
7 years, 7 months ago (2013-05-01 16:00:57 UTC) #1
dglazkov
LGTM. Would love to have a second look of a "True Bindings Person". https://codereview.chromium.org/14776002/diff/1/Source/bindings/v8/CustomElementHelpers.h File ...
7 years, 7 months ago (2013-05-01 16:51:22 UTC) #2
haraken
https://codereview.chromium.org/14776002/diff/1/Source/bindings/v8/CustomElementHelpers.h File Source/bindings/v8/CustomElementHelpers.h (right): https://codereview.chromium.org/14776002/diff/1/Source/bindings/v8/CustomElementHelpers.h#newcode49 Source/bindings/v8/CustomElementHelpers.h:49: class SVGElement; Nit: Alphabetical order please. https://codereview.chromium.org/14776002/diff/1/Source/bindings/v8/custom/V8CustomElementConstructorCustom.cpp File Source/bindings/v8/custom/V8CustomElementConstructorCustom.cpp ...
7 years, 7 months ago (2013-05-01 18:49:12 UTC) #3
dominicc (has gone to gerrit)
Thanks for your advice! haraken--PTAL https://codereview.chromium.org/14776002/diff/1/Source/bindings/v8/CustomElementHelpers.h File Source/bindings/v8/CustomElementHelpers.h (right): https://codereview.chromium.org/14776002/diff/1/Source/bindings/v8/CustomElementHelpers.h#newcode72 Source/bindings/v8/CustomElementHelpers.h:72: class CreateWrapperFunction { On ...
7 years, 7 months ago (2013-05-02 01:29:56 UTC) #4
dominicc (has gone to gerrit)
I think this upsets the Inspector somehow. Specifically the wrappers for unresolved elements. Let me ...
7 years, 7 months ago (2013-05-02 06:17:24 UTC) #5
haraken
LGTM in terms of binding implementation. > > I think the change looks correct in ...
7 years, 7 months ago (2013-05-02 06:58:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/14776002/8001
7 years, 7 months ago (2013-05-02 08:26:37 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-02 08:59:35 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/14776002/17002
7 years, 7 months ago (2013-05-02 09:26:08 UTC) #9
dominicc (has gone to gerrit)
Thanks for the review! I have switched back to toV8 in the constructor. I investigated ...
7 years, 7 months ago (2013-05-02 09:29:04 UTC) #10
commit-bot: I haz the power
7 years, 7 months ago (2013-05-02 09:49:03 UTC) #11
Message was sent while issue was closed.
Change committed as 149584

Powered by Google App Engine
This is Rietveld 408576698