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

Issue 2323633002: Implement animation tainted custom property values (Closed)

Created:
4 years, 3 months ago by alancutter (OOO until 2018)
Modified:
4 years, 2 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

Implement animation tainted custom property values This patch updates the CSSVariableResolver to be aware of animation tainted custom property values and to support disallowing custom property substitution when a referenced value has been animation tainted. Relevant spec: https://drafts.csswg.org/css-variables/#substitute-a-var The spec currently references the out of date notion of animation tainted custom properties rather than tainted values. This implementation reflects a future amendment of the spec. Because animations are the only source of animation tainted values and our implementation doesn't support animations setting custom property values there is no user-visible change made by this patch. The (failing) layout test shows the kind of behaviour this patch is intended to support. BUG=644148 Committed: https://crrev.com/87009415889d2164713316a5e5283e484570f6fd Cr-Commit-Position: refs/heads/master@{#423469}

Patch Set 1 #

Patch Set 2 : Test case #

Patch Set 3 : Taint values #

Patch Set 4 : omitAnimationTainted #

Patch Set 5 : Fix small problems. #

Patch Set 6 : Rebased #

Patch Set 7 : Rebased #

Patch Set 8 : Layout test #

Patch Set 9 : bigger fallback value #

Total comments: 10

Patch Set 10 : Make tests work #

Patch Set 11 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -93 lines) Patch
A third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html View 1 2 3 4 5 6 7 8 9 1 chunk +70 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/animations/custom-property-value-tainting-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp View 1 2 3 4 5 6 7 3 chunks +10 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/animation/StringKeyframe.cpp View 1 2 3 4 5 6 3 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp View 1 2 3 4 5 6 1 chunk +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSVariableData.h View 1 2 3 4 5 6 4 chunks +18 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSVariableData.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/DOMWindowCSS.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/KeyframeStyleRuleCSSStyleDeclaration.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/PropertyRegistration.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp View 1 2 3 4 5 6 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySet.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySet.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/CSSUnparsedValue.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParser.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParser.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserImpl.h View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSVariableParser.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp View 1 2 3 4 5 6 3 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp View 1 2 3 4 5 6 7 8 9 10 9 chunks +54 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 20 (10 generated)
alancutter (OOO until 2018)
4 years, 2 months ago (2016-10-05 06:34:59 UTC) #4
Timothy Loh
lgtm https://codereview.chromium.org/2323633002/diff/160001/third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html File third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html (right): https://codereview.chromium.org/2323633002/diff/160001/third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html#newcode28 third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html:28: animationName: 'untainted', These don't look right, shouldn't var(--tainted) ...
4 years, 2 months ago (2016-10-05 07:31:37 UTC) #5
alancutter (OOO until 2018)
https://codereview.chromium.org/2323633002/diff/160001/third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html File third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html (right): https://codereview.chromium.org/2323633002/diff/160001/third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html#newcode46 third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html:46: setTaintedValue(parent, '--tainted', ', , tainted'); Not sure why there's ...
4 years, 2 months ago (2016-10-05 07:46:40 UTC) #6
alancutter (OOO until 2018)
Verified that these tests actually pass in the custom property animation implementation. https://codereview.chromium.org/2323633002/diff/160001/third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html File third_party/WebKit/LayoutTests/animations/custom-property-value-tainting.html ...
4 years, 2 months ago (2016-10-06 01:25:33 UTC) #8
alancutter (OOO until 2018)
Verified that these tests actually pass in the custom property animation implementation.
4 years, 2 months ago (2016-10-06 01:25:35 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/2323633002/180001
4 years, 2 months ago (2016-10-06 01:59:23 UTC) #12
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/306649)
4 years, 2 months ago (2016-10-06 03:36:31 UTC) #14
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/2323633002/200001
4 years, 2 months ago (2016-10-06 06:25:49 UTC) #17
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-10-06 07:41:17 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 07:42:51 UTC) #20
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/87009415889d2164713316a5e5283e484570f6fd
Cr-Commit-Position: refs/heads/master@{#423469}

Powered by Google App Engine
This is Rietveld 408576698