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

Unified Diff: Source/core/css/resolver/AnimatedStyleBuilder.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/css/resolver/AnimatedStyleBuilder.cpp
diff --git a/Source/core/css/resolver/AnimatedStyleBuilder.cpp b/Source/core/css/resolver/AnimatedStyleBuilder.cpp
index d2460975b6406eb052be97430861dcaf9f94cc03..145058d48b15fde5fd0d147ee3fb7d989977dbac 100644
--- a/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -626,12 +626,21 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt
case CSSPropertyZIndex:
style->setZIndex(animatableValueRoundClampTo<int>(value));
return;
+ case CSSPropertyCx:
+ style->setCx(animatableValueToLength(value, state));
+ return;
+ case CSSPropertyCy:
+ style->setCy(animatableValueToLength(value, state));
+ return;
case CSSPropertyX:
style->setX(animatableValueToLength(value, state));
return;
case CSSPropertyY:
style->setY(animatableValueToLength(value, state));
return;
+ case CSSPropertyR:
+ style->setR(animatableValueToLength(value, state));
+ return;
case CSSPropertyRx:
style->setRx(animatableValueToLength(value, state));
return;

Powered by Google App Engine
This is Rietveld 408576698