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

Issue 1989343002: Implement :defined pseudo-class selector for Custom Elements (Closed)

Created:
4 years, 7 months ago by kojii
Modified:
4 years, 7 months ago
Reviewers:
Timothy Loh, rune
CC:
darktears, apavlov+blink_chromium.org, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, dglazkov+blink, dominicc (has gone to gerrit), eae+blinkwatch, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, rwlbuis, sergeyv+blink_chromium.org, sof, yosin_UTC9
Base URL:
https://chromium.googlesource.com/chromium/src.git@ce-state
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement :defined pseudo-class selector for Custom Elements This patch implements :defined pseudo-class selector[1]. Adding use counter is in a separate patch, as it's updated more often and needs other reviewers. [1] https://html.spec.whatwg.org/multipage/scripting.html#selector-defined BUG=594918 Committed: https://crrev.com/533a15025f7409bf1d820bb361b4972aa320a43a Cr-Commit-Position: refs/heads/master@{#396139}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebase, RuntimeEnabled, taken UseCounter out to a separate patch #

Patch Set 4 : Rebased on "set to undefined" patch, updated tests #

Patch Set 5 : Rebase #

Patch Set 6 : Fix DCHECK #

Total comments: 6

Patch Set 7 : rune and dominicc review, test updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/custom-elements/spec/selectors/pseudo-class-defined.html View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelector.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelector.cpp View 1 2 3 4 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleFeature.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/SelectorChecker.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 3 4 5 6 1 chunk +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
kojii
PTAL.
4 years, 7 months ago (2016-05-25 14:43:15 UTC) #7
rune
Would also be good to have a test where :defined state changes dynamically on an ...
4 years, 7 months ago (2016-05-25 23:43:07 UTC) #9
kojii
Thank you for your prompt review. > Would also be good to have a test ...
4 years, 7 months ago (2016-05-26 01:25:40 UTC) #10
kojii
In another CL, dominicc@ pointed out that we should test disconnected documents too, as defined ...
4 years, 7 months ago (2016-05-26 04:49:43 UTC) #11
rune
lgtm https://codereview.chromium.org/1989343002/diff/140001/third_party/WebKit/LayoutTests/custom-elements/spec/selectors/pseudo-class-defined.html File third_party/WebKit/LayoutTests/custom-elements/spec/selectors/pseudo-class-defined.html (right): https://codereview.chromium.org/1989343002/diff/140001/third_party/WebKit/LayoutTests/custom-elements/spec/selectors/pseudo-class-defined.html#newcode18 third_party/WebKit/LayoutTests/custom-elements/spec/selectors/pseudo-class-defined.html:18: + `* { color:${neither}; }` On 2016/05/26 04:49:43, ...
4 years, 7 months ago (2016-05-26 07:16:27 UTC) #12
kojii
Thank you for the prompt review!
4 years, 7 months ago (2016-05-26 07:20:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1989343002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1989343002/160001
4 years, 7 months ago (2016-05-26 07:20:25 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 7 months ago (2016-05-26 07:24:11 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 07:26:06 UTC) #18
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/533a15025f7409bf1d820bb361b4972aa320a43a
Cr-Commit-Position: refs/heads/master@{#396139}

Powered by Google App Engine
This is Rietveld 408576698