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

Issue 1958073002: Introduce :-internal-shadow-host-has-appearance pseudo class, and apply it to METER element. (Closed)

Created:
4 years, 7 months ago by tkent
Modified:
4 years, 7 months ago
Reviewers:
esprehn
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, dglazkov+blink, eae+blinkwatch, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, rwlbuis, sergeyv+blink_chromium.org, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce :-internal-shadow-host-has-appearance pseudo class, and apply it to METER element. :-internal-shadow-host-has-appearance pseudo class matches to a shadow element if - it is in User-Agent ShadowRoot, and - its shadow host has -webkit-appearance value other than "none". This class is available only in UA stylesheets. Also, this CL adds PseudoBlinkInternalElement. It's similar to PseudoWebKitCustomElement. Their differences are: - Pseudo ID of PseudoBlinkInternalElement starts with "-internal-". - ::-internal-* selectors are available only in UA stylesheets. METER's fallback element uses PseudoBlinkInternalElement in order to avoid to expose new vendor-specific elements. This CL has no user-visible behavior changes. BUG=609669 Committed: https://crrev.com/19b50f20c2da2f0f3efddd91e3df57ba4a4e8b15 Cr-Commit-Position: refs/heads/master@{#393779}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Add PseudoBlinkInternalElement #

Total comments: 2

Patch Set 3 : Remove null host check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -96 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLMeterElement/meter-element-markup-expected.txt View 1 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLMeterElement/meter-styles.html View 1 3 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLMeterElement/meter-styles-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLMeterElement/meter-styles-expected.txt View 1 3 chunks +14 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelector.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelector.cpp View 1 7 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleFeature.cpp View 1 3 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/RuleSet.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/SelectorChecker.cpp View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/html.css View 1 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserSelector.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMeterElement.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/core/html/shadow/AppearanceSwitchElement.h View 1 chunk +0 lines, -28 lines 0 comments Download
D third_party/WebKit/Source/core/html/shadow/AppearanceSwitchElement.cpp View 1 chunk +0 lines, -47 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
esprehn
I do think this is much better. Yeah it's crazy, but at least it's way ...
4 years, 7 months ago (2016-05-09 19:39:50 UTC) #7
tkent
Patch Set 2 is ready for review. https://codereview.chromium.org/1958073002/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/1958073002/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode921 third_party/WebKit/Source/core/css/SelectorChecker.cpp:921: if (!m_isUARule) ...
4 years, 7 months ago (2016-05-10 04:29:30 UTC) #10
esprehn
lgtm https://codereview.chromium.org/1958073002/diff/20001/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/1958073002/diff/20001/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode924 third_party/WebKit/Source/core/css/SelectorChecker.cpp:924: if (root->type() != ShadowRootType::UserAgent || !root->host()) host() can't ...
4 years, 7 months ago (2016-05-13 22:18:40 UTC) #11
esprehn
On 2016/05/13 at 22:18:40, esprehn wrote: > lgtm > > https://codereview.chromium.org/1958073002/diff/20001/third_party/WebKit/Source/core/css/SelectorChecker.cpp > File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): ...
4 years, 7 months ago (2016-05-13 22:18:48 UTC) #12
tkent
https://codereview.chromium.org/1958073002/diff/20001/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/1958073002/diff/20001/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode924 third_party/WebKit/Source/core/css/SelectorChecker.cpp:924: if (root->type() != ShadowRootType::UserAgent || !root->host()) On 2016/05/13 at ...
4 years, 7 months ago (2016-05-16 00:21:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958073002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958073002/40001
4 years, 7 months ago (2016-05-16 00:21:39 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-16 01:07:24 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 01:08:53 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/19b50f20c2da2f0f3efddd91e3df57ba4a4e8b15
Cr-Commit-Position: refs/heads/master@{#393779}

Powered by Google App Engine
This is Rietveld 408576698