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

Issue 20672003: Avoid reaching for StyleResolver::m_features from StyleBuilder. (Closed)

Created:
7 years, 4 months ago by dglazkov
Modified:
7 years, 4 months ago
Reviewers:
esprehn, eae, eseidel
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch, darktears
Visibility:
Public.

Description

Avoid reaching for StyleResolver::m_features from StyleBuilder. In order to inform style invalidation machinery, we have to keep track of all styles that depend on DOM state. This bookkeeping is provided by RuleFeatureSet, which is unfortunately hosted on StyleResolver. This means that whenever we apply a "content: attr(foo)" property, we must reach for m_features and add stuff to it. This change avoids direct reaching by accumulating values on StyleResolverState. No change in behavior, so no tests. BUG=259085 R=eae, eseidel, esprehn Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155382

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 4 chunks +11 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleResolverState.h View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
dglazkov
7 years, 4 months ago (2013-08-01 20:03:07 UTC) #1
eseidel
lgtm When I was looking at this, my approach was to make more of RuleFeatureSet ...
7 years, 4 months ago (2013-08-01 20:07:11 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dglazkov@chromium.org/20672003/1
7 years, 4 months ago (2013-08-01 20:07:28 UTC) #3
dglazkov
On 2013/08/01 20:07:11, eseidel wrote: > I suspect we'll want to accumulate out parameters on ...
7 years, 4 months ago (2013-08-01 20:09:30 UTC) #4
commit-bot: I haz the power
7 years, 4 months ago (2013-08-02 04:34:54 UTC) #5
Message was sent while issue was closed.
Change committed as 155382

Powered by Google App Engine
This is Rietveld 408576698