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

Issue 1111643003: Move StyleInvalidator to StyleEngine. (Closed)

Created:
5 years, 8 months ago by rune
Modified:
5 years, 7 months ago
Reviewers:
esprehn, kochi
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-style_chromium.org, dglazkov+blink, eae+blinkwatch, ed+blinkwatch_opera.com, rwlbuis, sof
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Move StyleInvalidator to StyleEngine. This is part of componentizing style resolving. We want to get rid of as much as possible of global style data like RuleFeatureSet. We decouple the StyleInvalidator from RuleFeatureSet and keep a single StyleInvalidator in the StyleEngine. This removes a bunch of unused StyleInvalidators from other RuleFeatureSets than the global one. The plan ahead is to collect invalidation sets from rulesets in tree scopes instead of the global one. BUG=401359 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194726

Patch Set 1 #

Total comments: 4

Patch Set 2 : Avoid calling ensureUpdatedRuleFeatureSet multiple times #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -101 lines) Patch
M Source/core/css/RuleFeature.h View 5 chunks +8 lines, -11 lines 0 comments Download
M Source/core/css/RuleFeature.cpp View 2 chunks +12 lines, -73 lines 0 comments Download
M Source/core/css/invalidation/StyleInvalidator.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Element.cpp View 5 chunks +6 lines, -6 lines 0 comments Download
M Source/core/dom/Node.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/StyleEngine.h View 5 chunks +12 lines, -0 lines 0 comments Download
M Source/core/dom/StyleEngine.cpp View 1 2 chunks +87 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
rune
5 years, 7 months ago (2015-04-28 11:04:14 UTC) #2
rune
PTAL
5 years, 7 months ago (2015-04-29 10:43:42 UTC) #3
esprehn
lgtm https://1c9a255-dot-chromiumcodereview-hr.appspot.com/1111643003/diff/1/Source/core/dom/StyleEngine.cpp File Source/core/dom/StyleEngine.cpp (right): https://1c9a255-dot-chromiumcodereview-hr.appspot.com/1111643003/diff/1/Source/core/dom/StyleEngine.cpp#newcode703 Source/core/dom/StyleEngine.cpp:703: ensureResolver().ensureUpdatedRuleFeatureSet().collectInvalidationSetsForClass(invalidationSets, element, changedClasses[i]); I don't think you want ...
5 years, 7 months ago (2015-04-30 05:40:24 UTC) #4
rune
https://codereview.chromium.org/1111643003/diff/1/Source/core/dom/StyleEngine.cpp File Source/core/dom/StyleEngine.cpp (right): https://codereview.chromium.org/1111643003/diff/1/Source/core/dom/StyleEngine.cpp#newcode703 Source/core/dom/StyleEngine.cpp:703: ensureResolver().ensureUpdatedRuleFeatureSet().collectInvalidationSetsForClass(invalidationSets, element, changedClasses[i]); On 2015/04/30 05:40:24, esprehn wrote: > ...
5 years, 7 months ago (2015-04-30 08:05:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1111643003/20001
5 years, 7 months ago (2015-04-30 08:06:20 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-04-30 10:46:48 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194726

Powered by Google App Engine
This is Rietveld 408576698