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

Issue 217713002: Refactor StyleInvalidator to encapsulate all style invalidation state. (Closed)

Created:
6 years, 9 months ago by chrishtr
Modified:
6 years, 8 months ago
Reviewers:
esprehn
CC:
blink-reviews, sof, eae+blinkwatch, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, rune+blink, Inactive, rwlbuis
Visibility:
Public.

Description

Refactor StyleInvalidator to encapsulate all style invalidation state. This is a nice cleanup, and sets us up for separating StyleInvalidator from RuleFeatureSet, which will allow us to more easily TargetedStyleRecalc for style sheet loads. BUG=318468 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170485

Patch Set 1 #

Patch Set 2 : Fix crash - hasTransform is not the same as transform() being non-null. #

Patch Set 3 : Merge. #

Patch Set 4 : Adustments. #

Patch Set 5 : Fix clear(). #

Total comments: 12

Patch Set 6 : Addressed comments from esprehn@. #

Patch Set 7 : Adust. #

Patch Set 8 : Adjust. #

Patch Set 9 : Tweak. #

Total comments: 2

Patch Set 10 : Remove explicit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -68 lines) Patch
M Source/core/css/RuleFeature.h View 1 2 3 4 5 4 chunks +8 lines, -17 lines 0 comments Download
M Source/core/css/RuleFeature.cpp View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -31 lines 0 comments Download
M Source/core/css/invalidation/StyleInvalidator.h View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -6 lines 0 comments Download
M Source/core/css/invalidation/StyleInvalidator.cpp View 1 2 3 4 5 6 7 8 2 chunks +34 lines, -9 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
chrishtr
6 years, 8 months ago (2014-03-31 18:13:03 UTC) #1
esprehn
You want an API on StyleResolver that you talk to. Callers of invalidate() and such ...
6 years, 8 months ago (2014-03-31 18:20:39 UTC) #2
chrishtr
https://codereview.chromium.org/217713002/diff/80001/Source/core/css/invalidation/StyleInvalidator.cpp File Source/core/css/invalidation/StyleInvalidator.cpp (right): https://codereview.chromium.org/217713002/diff/80001/Source/core/css/invalidation/StyleInvalidator.cpp#newcode34 Source/core/css/invalidation/StyleInvalidator.cpp:34: StyleInvalidator::InvalidationList& StyleInvalidator::ensurePendingInvalidationList(Element* element) On 2014/03/31 18:20:39, esprehn wrote: > ...
6 years, 8 months ago (2014-03-31 19:22:59 UTC) #3
esprehn
lgtm https://codereview.chromium.org/217713002/diff/140001/Source/core/css/invalidation/StyleInvalidator.h File Source/core/css/invalidation/StyleInvalidator.h (right): https://codereview.chromium.org/217713002/diff/140001/Source/core/css/invalidation/StyleInvalidator.h#newcode18 Source/core/css/invalidation/StyleInvalidator.h:18: explicit StyleInvalidator(); You don't need explicit since this ...
6 years, 8 months ago (2014-03-31 19:45:32 UTC) #4
chrishtr
https://codereview.chromium.org/217713002/diff/140001/Source/core/css/invalidation/StyleInvalidator.h File Source/core/css/invalidation/StyleInvalidator.h (right): https://codereview.chromium.org/217713002/diff/140001/Source/core/css/invalidation/StyleInvalidator.h#newcode18 Source/core/css/invalidation/StyleInvalidator.h:18: explicit StyleInvalidator(); On 2014/03/31 19:45:33, esprehn wrote: > You ...
6 years, 8 months ago (2014-03-31 20:07:37 UTC) #5
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 8 months ago (2014-03-31 20:08:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/217713002/160001
6 years, 8 months ago (2014-03-31 20:08:11 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 20:25:17 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_compile_dbg
6 years, 8 months ago (2014-03-31 20:25:17 UTC) #9
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 8 months ago (2014-03-31 21:16:58 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/217713002/160001
6 years, 8 months ago (2014-03-31 21:17:03 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-03-31 23:51:28 UTC) #12
Message was sent while issue was closed.
Change committed as 170485

Powered by Google App Engine
This is Rietveld 408576698