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

Issue 1985623002: [WIP] Custom element upgrades (Closed)

Created:
4 years, 7 months ago by dominicc (has gone to gerrit)
Modified:
4 years, 5 months ago
Reviewers:
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kojii, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Upgrade elements when a custom element is defined BUG=594918

Patch Set 1 #

Patch Set 2 : More WIP, adds sorting. #

Patch Set 3 : WIP #

Patch Set 4 : Rebase to script split refactor thing. #

Patch Set 5 : Updated WIP. #

Patch Set 6 : Add a C++-only test.' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+912 lines, -63 lines) Patch
A third_party/WebKit/LayoutTests/custom-elements/constructor-may-poach-upgrading-element.html View 1 2 3 4 5 1 chunk +66 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html View 1 2 3 4 5 2 chunks +64 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/Microtask.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h View 1 2 3 4 5 3 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp View 1 2 3 4 3 chunks +39 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp View 1 2 3 4 5 2 chunks +34 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.h View 1 2 3 4 2 chunks +28 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.cpp View 1 2 3 4 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h View 1 2 3 4 5 2 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDescriptor.h View 1 2 3 3 chunks +24 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDescriptorTest.cpp View 1 2 3 2 chunks +40 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementTestHelpers.h View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.h View 1 2 3 4 4 chunks +37 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp View 1 2 3 4 5 2 chunks +104 lines, -14 lines 0 comments Download
A third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp View 1 2 3 4 5 1 chunk +310 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 4 (0 generated)
dominicc (has gone to gerrit)
Not ready for review but FYI.
4 years, 7 months ago (2016-05-16 07:57:33 UTC) #1
yosin_UTC9
On 2016/05/16 at 07:57:33, dominicc wrote: > Not ready for review but FYI. Rather than ...
4 years, 7 months ago (2016-05-20 02:01:44 UTC) #2
dominicc (has gone to gerrit)
On 2016/05/20 at 02:01:44, yosin wrote: > On 2016/05/16 at 07:57:33, dominicc wrote: > > ...
4 years, 7 months ago (2016-05-22 12:28:14 UTC) #3
dominicc (has gone to gerrit)
4 years, 7 months ago (2016-05-25 21:42:39 UTC) #4
Brief to-do list for this patch:

- Add tests: upgrade in document; context death in constructor; upgrade after
having been wrapped; poach elements by calling new before super
- Only use associateWrapper if there is no existing wrapper
- Use ScriptController or V8ScriptRunner to enter script; may need to plumb in
CallAsConstructor.
- Maybe implement the reaction queues, or maybe do that next

Powered by Google App Engine
This is Rietveld 408576698