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

Issue 204873003: Factor the style invalidation tree walk out of RuleFeatureSet, and make it generic. (Closed)

Created:
6 years, 9 months ago by chrishtr
Modified:
6 years, 9 months ago
Reviewers:
esprehn, ojan
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

Factor the style invalidation tree walk out of RuleFeatureSet, and make it generic. This is in anticipation of adding support for attributes. BUG=352300, 335247 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169663

Patch Set 1 #

Patch Set 2 : Make it compile. #

Patch Set 3 : Cleaned up. #

Patch Set 4 : Move code around. #

Total comments: 18

Patch Set 5 : Addressed comments from esprehn@ #

Patch Set 6 : Rename class and some methods. #

Patch Set 7 : Addressed more comments. #

Patch Set 8 : Final tweaks. #

Total comments: 2

Patch Set 9 : Added explicit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -95 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/RuleFeature.h View 1 2 3 4 5 6 5 chunks +7 lines, -8 lines 0 comments Download
M Source/core/css/RuleFeature.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -86 lines 0 comments Download
A Source/core/css/invalidation/StyleInvalidator.h View 1 2 3 4 5 6 7 8 1 chunk +61 lines, -0 lines 0 comments Download
A Source/core/css/invalidation/StyleInvalidator.cpp View 1 2 3 4 5 6 7 1 chunk +128 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
chrishtr
6 years, 9 months ago (2014-03-19 21:39:55 UTC) #1
esprehn
Tree walk is not a good name, this is lots of algorithms and tree walking ...
6 years, 9 months ago (2014-03-19 22:01:59 UTC) #2
esprehn
https://codereview.chromium.org/204873003/diff/60001/Source/core/css/invalidation/StyleInvalidationTreeWalk.cpp File Source/core/css/invalidation/StyleInvalidationTreeWalk.cpp (right): https://codereview.chromium.org/204873003/diff/60001/Source/core/css/invalidation/StyleInvalidationTreeWalk.cpp#newcode41 Source/core/css/invalidation/StyleInvalidationTreeWalk.cpp:41: bool StyleInvalidationTreeWalk::RecursionData::matchesCurrentInvalidationSets(Element* element) This should be a method on ...
6 years, 9 months ago (2014-03-19 22:09:04 UTC) #3
chrishtr
Going to rename the class now to StyleInvalidator...you make a good point about tree walk ...
6 years, 9 months ago (2014-03-19 22:49:39 UTC) #4
chrishtr
Renamed the class, made methods not say Style redundantly.
6 years, 9 months ago (2014-03-19 23:03:41 UTC) #5
esprehn
https://codereview.chromium.org/204873003/diff/60001/Source/core/css/invalidation/StyleInvalidationTreeWalk.h File Source/core/css/invalidation/StyleInvalidationTreeWalk.h (right): https://codereview.chromium.org/204873003/diff/60001/Source/core/css/invalidation/StyleInvalidationTreeWalk.h#newcode14 Source/core/css/invalidation/StyleInvalidationTreeWalk.h:14: static void computeStyleInvalidation(Document&, RuleFeatureSet*); That's not the correct way ...
6 years, 9 months ago (2014-03-19 23:04:13 UTC) #6
chrishtr
https://codereview.chromium.org/204873003/diff/60001/Source/core/css/invalidation/StyleInvalidationTreeWalk.h File Source/core/css/invalidation/StyleInvalidationTreeWalk.h (right): https://codereview.chromium.org/204873003/diff/60001/Source/core/css/invalidation/StyleInvalidationTreeWalk.h#newcode14 Source/core/css/invalidation/StyleInvalidationTreeWalk.h:14: static void computeStyleInvalidation(Document&, RuleFeatureSet*); On 2014/03/19 23:04:14, esprehn wrote: ...
6 years, 9 months ago (2014-03-20 00:08:35 UTC) #7
esprehn
Awesome, one nit. lgtm https://codereview.chromium.org/204873003/diff/140001/Source/core/css/invalidation/StyleInvalidator.h File Source/core/css/invalidation/StyleInvalidator.h (right): https://codereview.chromium.org/204873003/diff/140001/Source/core/css/invalidation/StyleInvalidator.h#newcode16 Source/core/css/invalidation/StyleInvalidator.h:16: StyleInvalidator(Document&); explicit
6 years, 9 months ago (2014-03-20 00:33:02 UTC) #8
chrishtr
Thanks! https://codereview.chromium.org/204873003/diff/140001/Source/core/css/invalidation/StyleInvalidator.h File Source/core/css/invalidation/StyleInvalidator.h (right): https://codereview.chromium.org/204873003/diff/140001/Source/core/css/invalidation/StyleInvalidator.h#newcode16 Source/core/css/invalidation/StyleInvalidator.h:16: StyleInvalidator(Document&); On 2014/03/20 00:33:03, esprehn wrote: > explicit ...
6 years, 9 months ago (2014-03-20 03:46:32 UTC) #9
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 9 months ago (2014-03-20 03:46:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/204873003/160001
6 years, 9 months ago (2014-03-20 03:47:30 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 04:25:22 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-20 04:25:23 UTC) #13
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 9 months ago (2014-03-20 15:47:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/204873003/160001
6 years, 9 months ago (2014-03-20 15:47:33 UTC) #15
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 16:29:19 UTC) #16
Message was sent while issue was closed.
Change committed as 169663

Powered by Google App Engine
This is Rietveld 408576698