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

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

Issue 962763003: Use Length for the stroke-dashoffset property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make font-size explicit. Created 5 years, 10 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/css/LayoutStyleCSSValueMapping.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 5dfed308f6087958678f7e2d021917532577edd5..1a64f68890ae5edb7c937114fdf4d5f1769e1a55 100644
--- a/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -489,7 +489,7 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
style->setStrokeDashArray(toAnimatableStrokeDasharrayList(value)->toSVGLengthList());
return;
case CSSPropertyStrokeDashoffset:
- style->setStrokeDashOffset(toAnimatableSVGLength(value)->toSVGLength());
+ style->setStrokeDashOffset(animatableValueToLength(value, state));
return;
case CSSPropertyStrokeMiterlimit:
style->setStrokeMiterLimit(clampTo<float>(toAnimatableDouble(value)->toDouble(), 1));
« no previous file with comments | « Source/core/css/LayoutStyleCSSValueMapping.cpp ('k') | Source/core/layout/style/LayoutStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698