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

Issue 14834002: Set a bit on Custom Elements on creation to simplify wrapping (Closed)

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

Description

Set a bit on Custom Elements on creation to simplify wrapping For now, this makes wrapping faster because the wrapper factory can check this bit instead of examining the tag name and "is" attribute. This bit will soon be required for correctness: Currently, because elements are only activated at creation time, there is no window in which the "is" attribute can be changed by script before the element is upgraded. Soon we will do post-hoc upgrade of custom elements created before their definitions are available. This bit will be necessary for opting elements into that processing. Committed in r149589; rolled out in r149593. Now avoids hitting assert. BUG=233775 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149626

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use bits in Node instead of ElementRareData #

Patch Set 3 : Now avoids hitting assert. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -18 lines) Patch
M Source/bindings/v8/CustomElementHelpers.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/bindings/v8/CustomElementHelpers.cpp View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M Source/core/dom/CustomElementRegistry.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/dom/CustomElementRegistry.cpp View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M Source/core/dom/Node.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/scripts/make_names.pl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
dominicc (has gone to gerrit)
This bit is the tiny acorn from which mighty oaks of upgraded elements will grow. ...
7 years, 7 months ago (2013-05-02 02:54:11 UTC) #1
esprehn
There's plenty of bits in NodeFlags, lets use one of those for now. Allocating an ...
7 years, 7 months ago (2013-05-02 03:27:25 UTC) #2
dglazkov
glorious, except for: https://codereview.chromium.org/14834002/diff/1/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/14834002/diff/1/Source/core/dom/Element.cpp#newcode1551 Source/core/dom/Element.cpp:1551: return hasRareData() && elementRareData()->isCustomElement(); I agree ...
7 years, 7 months ago (2013-05-02 03:47:12 UTC) #3
dominicc (has gone to gerrit)
Thanks for the quick turnaround. Now with less rare data. PTAL.
7 years, 7 months ago (2013-05-02 03:53:59 UTC) #4
esprehn
On 2013/05/02 03:53:59, dominicc wrote: > Thanks for the quick turnaround. Now with less rare ...
7 years, 7 months ago (2013-05-02 03:55:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/14834002/6001
7 years, 7 months ago (2013-05-02 05:15:43 UTC) #6
commit-bot: I haz the power
Failed to apply patch for Source/bindings/v8/CustomElementHelpers.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-02 05:15:45 UTC) #7
dominicc (has gone to gerrit)
It will be simplest if <https://codereview.chromium.org/14776002/> goes first. That is waiting for haraken's seal of ...
7 years, 7 months ago (2013-05-02 05:17:38 UTC) #8
haraken
On 2013/05/02 05:17:38, dominicc wrote: > It will be simplest if <https://codereview.chromium.org/14776002/> goes first. > ...
7 years, 7 months ago (2013-05-02 05:18:46 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/14834002/6001
7 years, 7 months ago (2013-05-02 11:00:05 UTC) #10
commit-bot: I haz the power
Change committed as 149589
7 years, 7 months ago (2013-05-02 11:48:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/14834002/20001
7 years, 7 months ago (2013-05-02 23:55:55 UTC) #12
commit-bot: I haz the power
7 years, 7 months ago (2013-05-03 00:51:42 UTC) #13
Message was sent while issue was closed.
Change committed as 149626

Powered by Google App Engine
This is Rietveld 408576698