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

Issue 2173623003: Add "Failed" custom element state (Closed)

Created:
4 years, 5 months ago by kojii
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, 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 "Failed" custom element state To avoid constructor running multiple times on the same element[1], a new "failed" custom element state[2] was added to the spec. This patch: 1. Adds the CustomElementState::Failed. 2. Simplifies getCustomElementState(). 3. Removes Element::isCustomElement() to match code conventions to the spec terminologies. [1] https://github.com/w3c/webcomponents/issues/533 [2] https://dom.spec.whatwg.org/#concept-element-custom-element-state BUG=594918 Committed: https://crrev.com/5ac03d7943472ea900610fdb5cb27263fe8605c4 Cr-Commit-Position: refs/heads/master@{#407754}

Patch Set 1 #

Patch Set 2 : Add test and fixes #

Patch Set 3 : Fix and cleanup #

Total comments: 5

Patch Set 4 : dominicc review #

Patch Set 5 : Avoid multiple toElement #

Messages

Total messages: 32 (21 generated)
kojii
PTAL.
4 years, 5 months ago (2016-07-23 02:44:20 UTC) #12
dominicc (has gone to gerrit)
Comments inline. https://codereview.chromium.org/2173623003/diff/40001/third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js File third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js (right): https://codereview.chromium.org/2173623003/diff/40001/third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js#newcode15 third_party/WebKit/LayoutTests/custom-elements/spec/resources/custom-elements-helpers.js:15: function test_with_window(f, name, srcdoc) { Looks like ...
4 years, 4 months ago (2016-07-26 05:47:43 UTC) #13
kojii
All done. Turned out that operator<< for LOG is no longer necessary thanks to LOG ...
4 years, 4 months ago (2016-07-26 06:27:19 UTC) #16
dominicc (has gone to gerrit)
LGTM I see that you were using the srcdoc, sorry about that. Might be nice ...
4 years, 4 months ago (2016-07-26 06:55:31 UTC) #17
kojii
haraken@, PTAL for bindings; moved non-v8-specific logic to dom/. Thank you dominicc@, multiple toElement() fixed.
4 years, 4 months ago (2016-07-26 07:04:48 UTC) #21
Yuki
LGTM for bindings.
4 years, 4 months ago (2016-07-26 07:15:28 UTC) #23
kojii
Thank you!
4 years, 4 months ago (2016-07-26 07:55:44 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2173623003/80001
4 years, 4 months ago (2016-07-26 07:56:48 UTC) #28
haraken
bindings/ LGTM
4 years, 4 months ago (2016-07-26 08:09:50 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-26 09:53:57 UTC) #30
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 09:55:50 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5ac03d7943472ea900610fdb5cb27263fe8605c4
Cr-Commit-Position: refs/heads/master@{#407754}

Powered by Google App Engine
This is Rietveld 408576698