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

Issue 219193004: Custom pseudo element types as an invalidation set feature. (Closed)

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

Description

Custom pseudo element types as an invalidation set feature. Instead of falling back to full subtree recalcs for invalidation sets affected by custom pseudo elements, use a flag in the invalidation set saying that custom pseudo elements need to be invalidated. Can be extended to invalidate specific custom pseudo element types, but it will probably not be necessary. The reason for optimizing this in the first place is to make it possible to use invalidation sets for :hover/:active/:focus changes where descendants are affected by changes to those states. The UA stylesheet contains selectors for :hover/:active/:focus where such state changes affect descendants and the rightmost compound selector has a custom pseudo element as its only sub-selector. R=esprehn@chromium.org BUG=351613 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170538

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -3 lines) Patch
A LayoutTests/fast/css/invalidation/targeted-class-custom-pseudo.html View 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/invalidation/targeted-class-custom-pseudo-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/css/RuleFeature.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/RuleFeature.cpp View 4 chunks +6 lines, -2 lines 2 comments Download
M Source/core/css/invalidation/DescendantInvalidationSet.h View 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/css/invalidation/DescendantInvalidationSet.cpp View 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/css/invalidation/StyleInvalidator.h View 4 chunks +8 lines, -1 line 0 comments Download
M Source/core/css/invalidation/StyleInvalidator.cpp View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rune
6 years, 8 months ago (2014-03-31 13:45:44 UTC) #1
esprehn
lgtm https://codereview.chromium.org/219193004/diff/1/Source/core/css/RuleFeature.cpp File Source/core/css/RuleFeature.cpp (right): https://codereview.chromium.org/219193004/diff/1/Source/core/css/RuleFeature.cpp#newcode112 Source/core/css/RuleFeature.cpp:112: // FIXME: next up: Tag and Id. You ...
6 years, 8 months ago (2014-04-01 08:23:28 UTC) #2
rune
https://codereview.chromium.org/219193004/diff/1/Source/core/css/RuleFeature.cpp File Source/core/css/RuleFeature.cpp (right): https://codereview.chromium.org/219193004/diff/1/Source/core/css/RuleFeature.cpp#newcode112 Source/core/css/RuleFeature.cpp:112: // FIXME: next up: Tag and Id. On 2014/04/01 ...
6 years, 8 months ago (2014-04-01 08:41:34 UTC) #3
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-01 08:53:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/219193004/1
6 years, 8 months ago (2014-04-01 08:53:18 UTC) #5
esprehn
On 2014/04/01 08:41:34, rune - CET wrote: > https://codereview.chromium.org/219193004/diff/1/Source/core/css/RuleFeature.cpp > File Source/core/css/RuleFeature.cpp (right): > > ...
6 years, 8 months ago (2014-04-01 08:53:31 UTC) #6
rune
On 2014/04/01 08:53:31, esprehn wrote: > On 2014/04/01 08:41:34, rune - CET wrote: > > ...
6 years, 8 months ago (2014-04-01 08:57:00 UTC) #7
esprehn
On 2014/04/01 08:57:00, rune - CET wrote: > [...] > > That doesn't make sense, ...
6 years, 8 months ago (2014-04-01 09:03:34 UTC) #8
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 10:01:22 UTC) #9
Message was sent while issue was closed.
Change committed as 170538

Powered by Google App Engine
This is Rietveld 408576698