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

Issue 2622403006: Compute initial values for registered custom properties. (Closed)

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

Description

Compute initial values for registered custom properties. This patch makes initial values for registered custom properties go through computation, so initial values like calc(10px) end up as 10px when accessed through getComputedStyle. As per css-cascade logic they would normally go through regular computation anyway, but since we skip this for registered properties for efficiency we need to handle this case specially. BUG=671490 Review-Url: https://codereview.chromium.org/2622403006 Cr-Commit-Position: refs/heads/master@{#443847} Committed: https://chromium.googlesource.com/chromium/src/+/8a637421ef6b1bbfe05708f814a914e57c17a8b6

Patch Set 1 #

Total comments: 1

Patch Set 2 : initialise CSSToLengthConversionData nicer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -8 lines) Patch
M third_party/WebKit/LayoutTests/custom-properties/registered-property-initial.html View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSToLengthConversionData.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/PropertyRegistration.cpp View 1 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 chunk +22 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
Timothy Loh
https://codereview.chromium.org/2622403006/diff/1/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/2622403006/diff/1/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode1303 third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp:1303: if ((primitiveValue.isCalculated() && Apparently we didn't have any tests ...
3 years, 11 months ago (2017-01-13 05:07:41 UTC) #4
alancutter (OOO until 2018)
lgtm
3 years, 11 months ago (2017-01-13 08:02:14 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/2622403006/1
3 years, 11 months ago (2017-01-15 22:39:01 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/364461)
3 years, 11 months ago (2017-01-16 02:16:06 UTC) #11
meade_UTC10
lgtm
3 years, 11 months ago (2017-01-16 02:21:36 UTC) #13
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/2622403006/20001
3 years, 11 months ago (2017-01-16 03:56:39 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 05:15:08 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8a637421ef6b1bbfe05708f814a9...

Powered by Google App Engine
This is Rietveld 408576698