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

Issue 1982973002: Add CustomElementState for Custom Elements v1 (Closed)

Created:
4 years, 7 months ago by kojii
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CustomElementState for Custom Elements v1 This patch adds CustomElementState[1] for Custom Elements v1. In order for v0 and v1 to co-exist and avoid complexity, the state is stored separately from V0CustomElementState. They can be set independently from each other, except DCHECK to ensure an element can be customized by only by one of them. [1] https://dom.spec.whatwg.org/#concept-element-custom-element-state BUG=594918 Committed: https://crrev.com/f15adc94e6c7c22940472feefcee2e59071fec0c Cr-Commit-Position: refs/heads/master@{#394734}

Patch Set 1 #

Patch Set 2 : Custom -> Customized #

Patch Set 3 : Fix test #

Total comments: 6

Patch Set 4 : Renamed to isDefined #

Total comments: 2

Patch Set 5 : Rename CustomElementCustomizedFlag to CustomElementCustomFlag #

Total comments: 5

Patch Set 6 : yosin review #

Patch Set 7 : operator<<(std::ostream&, CustomElementState) #

Patch Set 8 : build fix and UNREACHABLE -> NOTREACHED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -2 lines) Patch
M third_party/WebKit/Source/core/dom/Element.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.h View 1 2 3 4 5 6 4 chunks +16 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 3 4 5 6 7 2 chunks +50 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/NodeTest.cpp View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
kojii
I tried to share the "defined/customized" flag for v0/v1, but it introduced more complexity than ...
4 years, 7 months ago (2016-05-17 06:21:03 UTC) #2
dominicc (has gone to gerrit)
Using more node flags is fine. We can do compaction later if we need to ...
4 years, 7 months ago (2016-05-18 07:56:22 UTC) #3
kojii
Thank you for your review. Replies inline: https://codereview.chromium.org/1982973002/diff/40001/third_party/WebKit/Source/core/dom/Element.h File third_party/WebKit/Source/core/dom/Element.h (right): https://codereview.chromium.org/1982973002/diff/40001/third_party/WebKit/Source/core/dom/Element.h#newcode377 third_party/WebKit/Source/core/dom/Element.h:377: bool isDefinedCustomElement() ...
4 years, 7 months ago (2016-05-18 08:32:15 UTC) #4
dominicc (has gone to gerrit)
lgtm I understand now; what you had was good. One nit inline about naming but ...
4 years, 7 months ago (2016-05-19 05:42:05 UTC) #5
kojii
Thanks. Yeah, I might need to allow that transition, I'll add when I figure out ...
4 years, 7 months ago (2016-05-19 05:52:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982973002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982973002/80001
4 years, 7 months ago (2016-05-19 05:53:05 UTC) #10
yosin_UTC9
Let's introduce printer, operator<<(ostream&, CustomeElementState). This makes us to ease of debugging and testing, e.g. ...
4 years, 7 months ago (2016-05-19 06:00:35 UTC) #11
kojii
Unfortunately, DCHECK_OP families fail for enum class, so we need to live with DCHECK or ...
4 years, 7 months ago (2016-05-19 06:07:22 UTC) #12
kojii
Done. https://codereview.chromium.org/1982973002/diff/80001/third_party/WebKit/Source/core/dom/Node.h File third_party/WebKit/Source/core/dom/Node.h (right): https://codereview.chromium.org/1982973002/diff/80001/third_party/WebKit/Source/core/dom/Node.h#newcode254 third_party/WebKit/Source/core/dom/Node.h:254: CustomElementState getCustomElementState() const On 2016/05/19 at 06:00:35, Yosi_UTC9 ...
4 years, 7 months ago (2016-05-19 06:52:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982973002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982973002/120001
4 years, 7 months ago (2016-05-19 06:52:42 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/140138)
4 years, 7 months ago (2016-05-19 07:12:57 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982973002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982973002/140001
4 years, 7 months ago (2016-05-19 07:19:08 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-19 11:11:26 UTC) #23
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 11:12:24 UTC) #25
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f15adc94e6c7c22940472feefcee2e59071fec0c
Cr-Commit-Position: refs/heads/master@{#394734}

Powered by Google App Engine
This is Rietveld 408576698