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

Issue 2426323003: Invalidate properties registered as non-inherited for custom paint (Closed)

Created:
4 years, 2 months ago by Timothy Loh
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-style_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Invalidate properties registered as non-inherited for custom paint This patch fixes custom paint invalidation for properties registered as non-inherited. To avoid plumbing the property registry around more, we check both the StyleInheritedVariables and StyleNonInheritedVariables to get a custom property's value. The invalidation for registered properties is not 100% precise as we compare the token stream values instead of parsed values, so a value could change representation (e.g. 160px to 10em) without a change in computation value and we would still invalidate. We also fail to invalidate when a property is registered. This could result in a computed value being set to the initial value. Alternatively the value could remain the same but registration could cause the value returned in the FilteredComputedStylePropertyMap to no longer be an unparsed value. BUG=641877 Committed: https://crrev.com/656fac63623b571cf135de0f5fe0e904f984b26a Cr-Commit-Position: refs/heads/master@{#426421}

Patch Set 1 #

Total comments: 2

Messages

Total messages: 14 (7 generated)
Timothy Loh
I'll file a bug later for the last issue mentioned in the description...
4 years, 2 months ago (2016-10-19 05:17:39 UTC) #4
meade_UTC10
lgtm Seems fine to me. Not sure I understand the custom paint things though. https://codereview.chromium.org/2426323003/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.cpp ...
4 years, 2 months ago (2016-10-19 07:41:14 UTC) #5
ikilpatrick
lgtm
4 years, 2 months ago (2016-10-19 16:08:30 UTC) #8
Timothy Loh
https://codereview.chromium.org/2426323003/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2426323003/diff/1/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode1022 third_party/WebKit/Source/core/style/ComputedStyle.cpp:1022: other.inheritedVariables() || other.nonInheritedVariables()) { On 2016/10/19 07:41:14, Eddy wrote: ...
4 years, 2 months ago (2016-10-20 06:05:17 UTC) #9
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/2426323003/1
4 years, 2 months ago (2016-10-20 06:05:37 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-20 06:27:34 UTC) #12
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:16:18 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/656fac63623b571cf135de0f5fe0e904f984b26a
Cr-Commit-Position: refs/heads/master@{#426421}

Powered by Google App Engine
This is Rietveld 408576698