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

Issue 2003593003: Make CustomElementsRegistry lazily initialize script state. (Closed)

Created:
4 years, 7 months ago by dominicc (has gone to gerrit)
Modified:
4 years, 7 months ago
Reviewers:
haraken, esprehn
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, dominicc+watchlist_chromium.org, eae+blinkwatch, 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

Make CustomElementsRegistry lazily initialize script state. Element creation and DOM manipulation will need to use the CustomElementRegistry when there's no script running. This adds an accessor that does not depend on ScriptState. BUG=594918

Patch Set 1 #

Total comments: 1

Patch Set 2 : Does not use a separate representation of initialized state. #

Total comments: 2

Messages

Total messages: 13 (2 generated)
dominicc (has gone to gerrit)
PTAL
4 years, 7 months ago (2016-05-21 01:21:23 UTC) #2
esprehn
Can we use PerWorldBindings instead? We shouldn't need ScriptState for the CustomElements object at all.
4 years, 7 months ago (2016-05-21 01:45:19 UTC) #3
esprehn
https://codereview.chromium.org/2003593003/diff/1/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.h File third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.h (right): https://codereview.chromium.org/2003593003/diff/1/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.h#newcode75 third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.h:75: enum class State { We should be able to ...
4 years, 7 months ago (2016-05-21 01:47:02 UTC) #4
dominicc (has gone to gerrit)
On 2016/05/21 at 01:45:19, esprehn wrote: > Can we use PerWorldBindings instead? We shouldn't need ...
4 years, 7 months ago (2016-05-22 22:29:20 UTC) #5
haraken
LGTM https://codereview.chromium.org/2003593003/diff/20001/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp File third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp (right): https://codereview.chromium.org/2003593003/diff/20001/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp#newcode163 third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp:163: void CustomElementsRegistry::initializeScript( I'd rename the method to ensureConstructorMap() ...
4 years, 7 months ago (2016-05-23 01:46:37 UTC) #7
esprehn
On 2016/05/22 at 22:29:20, dominicc wrote: > On 2016/05/21 at 01:45:19, esprehn wrote: > > ...
4 years, 7 months ago (2016-05-23 03:29:35 UTC) #8
haraken
On 2016/05/23 03:29:35, esprehn wrote: > On 2016/05/22 at 22:29:20, dominicc wrote: > > On ...
4 years, 7 months ago (2016-05-23 03:37:16 UTC) #9
dominicc (has gone to gerrit)
On 2016/05/23 at 03:29:35, esprehn wrote: > On 2016/05/22 at 22:29:20, dominicc wrote: > > ...
4 years, 7 months ago (2016-05-23 21:36:49 UTC) #10
esprehn
lgtm with nits fixed haraken@'s change applied. I do think we should handle this in ...
4 years, 7 months ago (2016-05-23 21:45:17 UTC) #11
haraken
On 2016/05/23 21:45:17, esprehn wrote: > lgtm with nits fixed haraken@'s change applied. I do ...
4 years, 7 months ago (2016-05-23 21:56:41 UTC) #12
dominicc (has gone to gerrit)
4 years, 7 months ago (2016-05-23 23:23:29 UTC) #13
Guess it does not make sense to commit this if we want to split dom and bindings
more.

Powered by Google App Engine
This is Rietveld 408576698