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

Issue 224593002: Use invalidation sets when selector contains adjacent combinators. (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
Visibility:
Public.

Description

Use invalidation sets when selector contains adjacent combinators. When we found a direct or indirect adjacent combinator, we fell back on using a subtree recalc for all features in the selector in question. That is not necessary as we can resume the process of adding separate features to the invalidation sets once we encounter a non-adjacent combinator going leftwards. Example: .a .b + .c { } We have an empty invalidation set for 'c', 'b' currently needs to do a sub- tree recalc to recalculate the 'c' class element when 'b' is added or removed. However, once we see the descendant combinator left of '.b' we can get away with adding 'c' to the invalidation set for 'a' since 'c' will have to be in 'a's sub-tree. Eventually, I think we could merge collectFeaturesFromSelector with updateInvalidationSet to get rid of a pass through the selector. R=esprehn@chromium.org BUG=351613, 335247 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170881

Patch Set 1 #

Total comments: 4

Patch Set 2 : Moved SGML comment out of <style> element. #

Patch Set 3 : Rebased with modified expected test results. #

Messages

Total messages: 15 (0 generated)
rune
6 years, 8 months ago (2014-04-03 22:10:59 UTC) #1
esprehn
lgtm, I do wonder how much this really matters in practice. I think most developers ...
6 years, 8 months ago (2014-04-03 22:58:05 UTC) #2
rune
https://codereview.chromium.org/224593002/diff/1/LayoutTests/fast/css/invalidation/invalidation-set-with-adjacent-combinators.html File LayoutTests/fast/css/invalidation/invalidation-set-with-adjacent-combinators.html (right): https://codereview.chromium.org/224593002/diff/1/LayoutTests/fast/css/invalidation/invalidation-set-with-adjacent-combinators.html#newcode5 LayoutTests/fast/css/invalidation/invalidation-set-with-adjacent-combinators.html:5: <!-- On 2014/04/03 22:58:05, esprehn wrote: > Can you ...
6 years, 8 months ago (2014-04-04 09:29:36 UTC) #3
rune
On 2014/04/03 22:58:05, esprehn wrote: > lgtm, I do wonder how much this really matters ...
6 years, 8 months ago (2014-04-04 11:32:44 UTC) #4
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-04 11:34:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/224593002/20001
6 years, 8 months ago (2014-04-04 11:34:51 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 11:53:49 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-04 11:53:49 UTC) #8
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-04 13:59:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/224593002/40001
6 years, 8 months ago (2014-04-04 14:00:02 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 14:47:11 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-04 14:47:11 UTC) #12
rune
The CQ bit was checked by rune@opera.com
6 years, 8 months ago (2014-04-04 14:49:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/224593002/40001
6 years, 8 months ago (2014-04-04 14:49:55 UTC) #14
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 16:14:41 UTC) #15
Message was sent while issue was closed.
Change committed as 170881

Powered by Google App Engine
This is Rietveld 408576698