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

Issue 171513013: Do not add features to classes in rightmost compound selector. (Closed)

Created:
6 years, 10 months ago by rune
Modified:
6 years, 10 months ago
Reviewers:
chrishtr, esprehn
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Do not add features to classes in rightmost compound selector. Features found in the rightmost compound selector should always have empty invalidation sets. Their invalidation set should not contain itself or any other features found in the same compound selector. No need to look for descendants with classes 'a' or 'b' when changing 'a' or 'b' on elements for the following selectors: .a {} .a.b {} .x .a {} .x .a.b {} R=esprehn@chromium.org, chrishtr@chromium.org BUG=345238 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167674

Patch Set 1 #

Total comments: 2

Patch Set 2 : Back to using two loops. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -3 lines) Patch
M LayoutTests/fast/css/invalidation/targeted-class-style-invalidation.html View 4 chunks +16 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/invalidation/targeted-class-style-invalidation-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/virtual/targetedstylerecalc/fast/css/invalidation/targeted-class-style-invalidation-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/RuleFeature.cpp View 1 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rune
6 years, 10 months ago (2014-02-20 10:39:03 UTC) #1
chrishtr
lgtm
6 years, 10 months ago (2014-02-20 18:56:30 UTC) #2
esprehn
https://codereview.chromium.org/171513013/diff/1/Source/core/css/RuleFeature.cpp File Source/core/css/RuleFeature.cpp (right): https://codereview.chromium.org/171513013/diff/1/Source/core/css/RuleFeature.cpp#newcode120 Source/core/css/RuleFeature.cpp:120: continue; I think you want to do this as ...
6 years, 10 months ago (2014-02-21 04:33:46 UTC) #3
esprehn
On 2014/02/21 04:33:46, esprehn wrote: > https://codereview.chromium.org/171513013/diff/1/Source/core/css/RuleFeature.cpp > File Source/core/css/RuleFeature.cpp (right): > > https://codereview.chromium.org/171513013/diff/1/Source/core/css/RuleFeature.cpp#newcode120 > ...
6 years, 10 months ago (2014-02-21 04:38:54 UTC) #4
esprehn
On 2014/02/21 04:38:54, esprehn wrote: > On 2014/02/21 04:33:46, esprehn wrote: > > ... > ...
6 years, 10 months ago (2014-02-21 04:41:25 UTC) #5
rune
https://codereview.chromium.org/171513013/diff/1/Source/core/css/RuleFeature.cpp File Source/core/css/RuleFeature.cpp (right): https://codereview.chromium.org/171513013/diff/1/Source/core/css/RuleFeature.cpp#newcode120 Source/core/css/RuleFeature.cpp:120: continue; On 2014/02/21 04:33:46, esprehn wrote: > I think ...
6 years, 10 months ago (2014-02-21 10:17:16 UTC) #6
esprehn
lgtm, thanks!
6 years, 10 months ago (2014-02-24 05:55:17 UTC) #7
rune
The CQ bit was checked by rune@opera.com
6 years, 10 months ago (2014-02-24 07:07:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/171513013/100001
6 years, 10 months ago (2014-02-24 07:07:24 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-02-24 10:21:47 UTC) #10
Message was sent while issue was closed.
Change committed as 167674

Powered by Google App Engine
This is Rietveld 408576698