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

Issue 2630683002: Move custom property isInheritedProperty storage logic into ComputedStyle (Closed)

Created:
3 years, 11 months ago by alancutter (OOO until 2018)
Modified:
3 years, 11 months ago
Reviewers:
Timothy Loh
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move custom property isInheritedProperty storage logic into ComputedStyle This change is a small refactor that pushes the details of whether custom property values are stored in StyleInheritedVariables or StyleNonInheritedVariables down into ComputedStyle. This is in preparation for animations on registered custom properties and avoids duplicated logic. BUG=671904 Review-Url: https://codereview.chromium.org/2630683002 Cr-Commit-Position: refs/heads/master@{#443512} Committed: https://chromium.googlesource.com/chromium/src/+/0ffd401266e9b6afb5e7595fcefd336765ffdc99

Patch Set 1 #

Patch Set 2 : Undo cscssvm change #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -44 lines) Patch
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 chunk +22 lines, -27 lines 2 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 chunk +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 chunk +31 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleInheritedVariables.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleInheritedVariables.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 10 (4 generated)
alancutter (OOO until 2018)
3 years, 11 months ago (2017-01-13 04:25:10 UTC) #2
Timothy Loh
On 2017/01/13 04:25:10, alancutter wrote: lgtm
3 years, 11 months ago (2017-01-13 04:39:56 UTC) #3
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/2630683002/20001
3 years, 11 months ago (2017-01-13 05:20:19 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/0ffd401266e9b6afb5e7595fcefd336765ffdc99
3 years, 11 months ago (2017-01-13 07:15:27 UTC) #8
Timothy Loh
Apparently I forgot to send out this message :o https://codereview.chromium.org/2630683002/diff/20001/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp (left): https://codereview.chromium.org/2630683002/diff/20001/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp#oldcode931 third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp:931: ...
3 years, 11 months ago (2017-01-17 05:51:06 UTC) #9
alancutter (OOO until 2018)
3 years, 11 months ago (2017-01-17 06:08:15 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/2630683002/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp (left):

https://codereview.chromium.org/2630683002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp:931:
DCHECK(initial ^ inherit);
On 2017/01/17 at 05:51:05, Timothy Loh wrote:
> Can we just keep this? You loosened the check so now it wouldnt assert on
initial && inherit

Ah, true. I mainly changed it so that the code below had DCHECK(inherit) as a
heading for readability.

Powered by Google App Engine
This is Rietveld 408576698