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

Unified Diff: Source/core/css/RenderStyleCSSValueMapping.cpp

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: cleanup 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
Index: Source/core/css/RenderStyleCSSValueMapping.cpp
diff --git a/Source/core/css/RenderStyleCSSValueMapping.cpp b/Source/core/css/RenderStyleCSSValueMapping.cpp
index 29d3305c9199229d436911a14d87328735f51c93..064be72a019cd615daf14fb8e0d29f1f1c458cca 100644
--- a/Source/core/css/RenderStyleCSSValueMapping.cpp
+++ b/Source/core/css/RenderStyleCSSValueMapping.cpp
@@ -2559,6 +2559,10 @@ PassRefPtrWillBeRawPtr<CSSValue> RenderStyleCSSValueMapping::get(CSSPropertyID p
case CSSPropertyEnableBackground:
// the above properties are not yet implemented in the engine
return nullptr;
+ case CSSPropertyX:
+ return zoomAdjustedPixelValueForLength(svgStyle.x(), style);
+ case CSSPropertyY:
+ return zoomAdjustedPixelValueForLength(svgStyle.y(), style);
case CSSPropertyAll:
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698