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

Issue 171513006: Support invalidation sets for simple class selectors. (Closed)

Created:
6 years, 10 months ago by rune
Modified:
6 years, 10 months ago
Reviewers:
chrishtr, esprehn, ojan
CC:
blink-reviews, dglazkov+blink, rune+blink, apavlov+blink_chromium.org, ed+blinkwatch_opera.com, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Support invalidation sets for simple class selectors. Invalidation sets were supported for selectors like '.a .b' with an empty invalidation set for 'b' and a LocalStyleChange for elements for which 'b' was added or removed. However, not for simple class selectors like '.b' for which an empty invalidation set would be added, but also marked with wholeSubtreeInvalid yielding a SubtreeStyleChange instead. Now, start using invalidation sets for class selectors in the rightmost compound selector even when there are no other class selectors present. R=chrishtr@chromium.org,ojan@chromium.org BUG=335247 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167470

Patch Set 1 #

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

Messages

Total messages: 14 (0 generated)
rune
6 years, 10 months ago (2014-02-19 13:08:38 UTC) #1
chrishtr
https://codereview.chromium.org/171513006/diff/1/Source/core/css/RuleFeature.cpp File Source/core/css/RuleFeature.cpp (right): https://codereview.chromium.org/171513006/diff/1/Source/core/css/RuleFeature.cpp#newcode56 Source/core/css/RuleFeature.cpp:56: bool foundDescendantRelation = false; remove these variables https://codereview.chromium.org/171513006/diff/1/Source/core/css/RuleFeature.cpp#newcode66 Source/core/css/RuleFeature.cpp:66: ...
6 years, 10 months ago (2014-02-19 17:50:44 UTC) #2
rune
https://codereview.chromium.org/171513006/diff/1/Source/core/css/RuleFeature.cpp File Source/core/css/RuleFeature.cpp (right): https://codereview.chromium.org/171513006/diff/1/Source/core/css/RuleFeature.cpp#newcode56 Source/core/css/RuleFeature.cpp:56: bool foundDescendantRelation = false; On 2014/02/19 17:50:44, Chris Harrelson ...
6 years, 10 months ago (2014-02-19 18:47:40 UTC) #3
chrishtr
lgtm https://codereview.chromium.org/171513006/diff/1/Source/core/css/RuleFeature.cpp File Source/core/css/RuleFeature.cpp (right): https://codereview.chromium.org/171513006/diff/1/Source/core/css/RuleFeature.cpp#newcode66 Source/core/css/RuleFeature.cpp:66: foundIdent = true; On 2014/02/19 18:47:40, rune - ...
6 years, 10 months ago (2014-02-19 18:54:00 UTC) #4
ojan
lgtm
6 years, 10 months ago (2014-02-19 19:40:46 UTC) #5
ojan
esprehn, FYI
6 years, 10 months ago (2014-02-19 19:41:16 UTC) #6
esprehn
On 2014/02/19 19:41:16, ojan wrote: > esprehn, FYI lgtm, we should really optimize the memory ...
6 years, 10 months ago (2014-02-19 19:49:15 UTC) #7
rune
On 2014/02/19 19:49:15, esprehn wrote: > On 2014/02/19 19:41:16, ojan wrote: > > esprehn, FYI ...
6 years, 10 months ago (2014-02-19 20:33:42 UTC) #8
rune
The CQ bit was unchecked by rune@opera.com
6 years, 10 months ago (2014-02-19 20:34:13 UTC) #9
rune
The CQ bit was checked by rune@opera.com
6 years, 10 months ago (2014-02-19 20:34:16 UTC) #10
chrishtr
Good point about the memory, I'll send a patch for that. On Wed, Feb 19, ...
6 years, 10 months ago (2014-02-19 21:40:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/171513006/1
6 years, 10 months ago (2014-02-19 22:02:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/171513006/1
6 years, 10 months ago (2014-02-19 23:08:18 UTC) #13
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 07:32:23 UTC) #14
Message was sent while issue was closed.
Change committed as 167470

Powered by Google App Engine
This is Rietveld 408576698