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

Issue 2219543003: Elements using @apply shouldn't use the MatchedPropertiesCache (Closed)

Created:
4 years, 4 months ago by Timothy Loh
Modified:
4 years, 4 months ago
Reviewers:
meade_UTC10, shans
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Elements using @apply shouldn't use the MatchedPropertiesCache This patch disables the MatchedPropertiesCache on elements which use @apply rules. We re-use the same flag as for when variables are referenced from non-inherited properties because this is fundamentally the same issue. For elements with MatchedProperties in the cache but a different parent ComputedStyle than is cached, we copy non-inherited properties directly from the cache and apply only inherited properties. This doesn't work when a non-inherited property depends on a parent's property and we already disable this optimisation when a non-inherited property is set to inherit or a variable reference. Similarly, using @apply can make a non-inherited property depend on a parent's property by having the @apply'd variable be inherited and setting a non-inherited property with the rule. BUG=633745 Committed: https://crrev.com/da555331c0bea26738d4c1ffe0b5fae8a706370b Cr-Commit-Position: refs/heads/master@{#410578}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/atapply/at-apply-identical-aside-from-inherited.html View 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (12 generated)
Timothy Loh
4 years, 4 months ago (2016-08-05 03:50:09 UTC) #4
shans
lgtm
4 years, 4 months ago (2016-08-05 03:54:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2219543003/1
4 years, 4 months ago (2016-08-08 06:26:03 UTC) #9
meade_UTC10
lgtm https://codereview.chromium.org/2219543003/diff/1/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp File third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/2219543003/diff/1/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp#newcode1437 third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp:1437: state.style()->setHasVariableReferenceFromNonInheritedProperty(); Do you get much from checking this ...
4 years, 4 months ago (2016-08-08 06:53:56 UTC) #10
Timothy Loh
https://codereview.chromium.org/2219543003/diff/1/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp File third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/2219543003/diff/1/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp#newcode1437 third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp:1437: state.style()->setHasVariableReferenceFromNonInheritedProperty(); On 2016/08/08 06:53:56, Eddy wrote: > Do you ...
4 years, 4 months ago (2016-08-08 07:03:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2219543003/20001
4 years, 4 months ago (2016-08-09 01:47:09 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-09 05:06:37 UTC) #18
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 05:08:13 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/da555331c0bea26738d4c1ffe0b5fae8a706370b
Cr-Commit-Position: refs/heads/master@{#410578}

Powered by Google App Engine
This is Rietveld 408576698