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

Unified Diff: Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 991533003: Handle more <length> properties in animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: stroke-dashoffset setter exists + fixups + add tests Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/StringKeyframe.cpp ('k') | Source/core/layout/style/LayoutStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/AnimatedStyleBuilder.cpp
diff --git a/Source/core/css/resolver/AnimatedStyleBuilder.cpp b/Source/core/css/resolver/AnimatedStyleBuilder.cpp
index 3fc437190bc2ca47b6c26584cb487f544725ef29..130d98546225839bf1a60a57a296fc1abffec1d1 100644
--- a/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -640,13 +640,13 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
style->setY(animatableValueToLength(value, state));
return;
case CSSPropertyR:
- style->setR(animatableValueToLength(value, state));
+ style->setR(animatableValueToLength(value, state, ValueRangeNonNegative));
return;
case CSSPropertyRx:
- style->setRx(animatableValueToLength(value, state));
+ style->setRx(animatableValueToLength(value, state, ValueRangeNonNegative));
return;
case CSSPropertyRy:
- style->setRy(animatableValueToLength(value, state));
+ style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative));
return;
default:
« no previous file with comments | « Source/core/animation/StringKeyframe.cpp ('k') | Source/core/layout/style/LayoutStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698