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

Issue 547363002: Reject pseudo class inside :not() (Closed)

Created:
6 years, 3 months ago by yurina1
Modified:
6 years, 3 months ago
Reviewers:
yanagawa1, hayato
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Reject pseudo class inside :not() The current behavior, pseudo classes inside :not() work when they used in the <content select=””> context, however, it does not satisfy the matching criteria. This patch reject them. BUG=389003 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181726

Patch Set 1 #

Total comments: 2

Patch Set 2 : add test #

Total comments: 3

Patch Set 3 : Remove #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M LayoutTests/fast/dom/shadow/content-selector-query.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/shadow/content-selector-query-expected.txt View 1 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/html/HTMLContentElement.cpp View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
yurina1
Hi hayato-san, Could you review this patch?
6 years, 3 months ago (2014-09-09 00:50:31 UTC) #2
hayato
Thank you for the contribution. https://codereview.chromium.org/547363002/diff/1/LayoutTests/fast/dom/shadow/content-selector-query.html File LayoutTests/fast/dom/shadow/content-selector-query.html (right): https://codereview.chromium.org/547363002/diff/1/LayoutTests/fast/dom/shadow/content-selector-query.html#newcode54 LayoutTests/fast/dom/shadow/content-selector-query.html:54: 'div:first-of-type, div', 'div, div:first-of-type', ...
6 years, 3 months ago (2014-09-09 05:58:32 UTC) #3
yurina1
Thank you for the comment. I added some tests.
6 years, 3 months ago (2014-09-09 06:47:50 UTC) #5
hayato
LGTM. Congrats for the first patch. You can land this patch. https://codereview.chromium.org/547363002/diff/40001/Source/core/html/HTMLContentElement.cpp File Source/core/html/HTMLContentElement.cpp (right): ...
6 years, 3 months ago (2014-09-10 06:29:11 UTC) #6
yurina1
https://codereview.chromium.org/547363002/diff/40001/Source/core/html/HTMLContentElement.cpp File Source/core/html/HTMLContentElement.cpp (right): https://codereview.chromium.org/547363002/diff/40001/Source/core/html/HTMLContentElement.cpp#newcode89 Source/core/html/HTMLContentElement.cpp:89: return selector.match() == CSSSelector::PseudoClass && selector.pseudoType() != CSSSelector::PseudoNot; On ...
6 years, 3 months ago (2014-09-10 11:02:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yurina@chromium.org/547363002/60001
6 years, 3 months ago (2014-09-10 11:03:17 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 11:06:38 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as 181726

Powered by Google App Engine
This is Rietveld 408576698