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

Unified Diff: Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 980233002: [svg2] Make 'cx', 'cy' and 'r' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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
Index: Source/core/animation/css/CSSAnimatableValueFactory.cpp
diff --git a/Source/core/animation/css/CSSAnimatableValueFactory.cpp b/Source/core/animation/css/CSSAnimatableValueFactory.cpp
index b2a6b313875cd3d133ac2b65c8682eb6f4180511..ed46e4f957e7066ad2d9019df52f043f873bae73 100644
--- a/Source/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/Source/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -528,10 +528,16 @@ PassRefPtrWillBeRawPtr<AnimatableValue> CSSAnimatableValueFactory::create(CSSPro
return AnimatableUnknown::create(CSSPrimitiveValue::create(style.verticalAlign()));
case CSSPropertyVisibility:
return AnimatableVisibility::create(style.visibility());
+ case CSSPropertyCx:
+ return createFromLength(style.svgStyle().cx(), style);
+ case CSSPropertyCy:
+ return createFromLength(style.svgStyle().cy(), style);
case CSSPropertyX:
return createFromLength(style.svgStyle().x(), style);
case CSSPropertyY:
return createFromLength(style.svgStyle().y(), style);
+ case CSSPropertyR:
+ return createFromLength(style.svgStyle().r(), style);
case CSSPropertyRx:
return createFromLength(style.svgStyle().rx(), style);
case CSSPropertyRy:

Powered by Google App Engine
This is Rietveld 408576698