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

Issue 21151005: Implement ::content (Closed)

Created:
7 years, 4 months ago by tasak
Modified:
7 years, 4 months ago
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch, darktears
Visibility:
Public.

Description

Implement ::content Existing: ::-webkit-distributed(parameter) -> New: ::content parameter Example: - ::-webkit-distributed(div) -> ::content div - ::-webkit-distributed(> div) -> ::content > div A W3C bug related to this implementation: https://www.w3.org/Bugs/Public/show_bug.cgi?id=22829 ::content is guarded by RuntimeEnabledFeatures::shadowDOMEnabled. BUG=253655 TESTS=LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html, LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-attribute-change.html, LayoutTests/fast/dom/shadow/content-pseudo-element-for-shadow-element.html, LayoutTests/fast/dom/shadow/content-pseudo-element-match-all.html, LayoutTests/fast/dom/shadow/content-pseudo-element-match-descendant.html, LayoutTests/fast/dom/shadow/content-pseudo-element-nested.html, LayoutTests/fast/dom/shadow/content-pseudo-element-relative-selector-css-text.html, LayoutTests/fast/dom/shadow/content-pseudo-element-relative-selector.html, LayoutTests/fast/dom/shadow/content-pseudo-element-reprojection.html, LayoutTests/fast/dom/shadow/content-pseudo-element-scoped.html, LayoutTests/fast/dom/shadow/content-pseudo-element-specifiers-in-left-side.html, LayoutTests/fast/dom/shadow/content-pseudo-element-support-selector.html, LayoutTests/fast/dom/shadow/content-pseudo-element-used-in-selector-list.html, LayoutTests/fast/dom/shadow/content-pseudo-element-with-any.html, LayoutTests/fast/dom/shadow/content-pseudo-element.html, LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-pseudo-content.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155512

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Fix apply patch failure. #

Patch Set 4 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -31 lines) Patch
A + LayoutTests/fast/dom/shadow/content-pseudo-element.html View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html View 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/content-pseudo-element-css-text-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-attribute-change.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-attribute-change-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-for-shadow-element.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-for-shadow-element-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-match-all.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-match-all-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-match-descendant.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-match-descendant-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-nested.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-nested-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-relative-selector.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-relative-selector-css-text.html View 1 chunk +2 lines, -2 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-relative-selector-css-text-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-relative-selector-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-reprojection.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-reprojection-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-scoped.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-scoped-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-specifiers-in-left-side.html View 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-specifiers-in-left-side-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-support-selector.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-support-selector-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-used-in-selector-list.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-used-in-selector-list-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-with-any.html View 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/content-pseudo-element-with-any-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-pseudo-content.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-pseudo-content-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/css/CSSGrammar.y.in View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/css/CSSParser.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSParser-in.cpp View 1 2 3 4 chunks +46 lines, -7 lines 0 comments Download
M Source/core/css/CSSParserValues.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/css/CSSSelector.h View 1 2 3 8 chunks +14 lines, -7 lines 0 comments Download
M Source/core/css/CSSSelector.cpp View 1 2 3 6 chunks +17 lines, -3 lines 0 comments Download
M Source/core/css/CSSSelectorList.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/SelectorChecker.cpp View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M Source/core/css/SelectorFilter.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
tasak
7 years, 4 months ago (2013-07-31 07:42:42 UTC) #1
hayato
We should implement this feature as an unprefixed API of '::content', rather than reusing 'webkit-distributed()', ...
7 years, 4 months ago (2013-07-31 08:12:35 UTC) #2
tasak
On 2013/07/31 08:12:35, hayato wrote: > We should implement this feature as an unprefixed API ...
7 years, 4 months ago (2013-07-31 09:05:01 UTC) #3
tasak
On 2013/07/31 08:12:35, hayato wrote: > We should implement this feature as an unprefixed API ...
7 years, 4 months ago (2013-07-31 11:07:25 UTC) #4
dglazkov
This looks relatively painless! Hayato-san, WDYT?
7 years, 4 months ago (2013-07-31 20:05:17 UTC) #5
hayato
Could you guard '::content' by Shadow DOM flag? I am not sure how to guard, ...
7 years, 4 months ago (2013-08-01 02:34:29 UTC) #6
tasak
Thank you for reviewing. I have already guarded ::content, i.e. if (RuntimeEnabledFeatures::customDOMElementsEnabled()) nameToPseudoType->set(unresolved.impl(), CSSSelector::PseudoUnresolved); + ...
7 years, 4 months ago (2013-08-01 03:31:44 UTC) #7
hayato
lgtm Do you have a plan to remove '-webkit-distributed(..)' in the near future? It's not ...
7 years, 4 months ago (2013-08-01 03:37:56 UTC) #8
hayato
Also you might want to mention that '::content' is guarded by the ShadowDOM flag in ...
7 years, 4 months ago (2013-08-01 03:39:41 UTC) #9
tasak
On 2013/08/01 03:39:41, hayato wrote: > Also you might want to mention that '::content' is ...
7 years, 4 months ago (2013-08-01 09:53:05 UTC) #10
hayato
Thank you. You can land this patch. Could you file an issue to remove '::-webkit-distributed()' ...
7 years, 4 months ago (2013-08-05 03:56:35 UTC) #11
tasak
On 2013/08/05 03:56:35, hayato wrote: > Thank you. You can land this patch. > > ...
7 years, 4 months ago (2013-08-05 05:31:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/21151005/26001
7 years, 4 months ago (2013-08-05 05:31:18 UTC) #13
commit-bot: I haz the power
7 years, 4 months ago (2013-08-05 06:58:51 UTC) #14
Message was sent while issue was closed.
Change committed as 155512

Powered by Google App Engine
This is Rietveld 408576698