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

Unified Diff: Source/core/css/LayoutStyleCSSValueMapping.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/LayoutStyleCSSValueMapping.cpp
diff --git a/Source/core/css/LayoutStyleCSSValueMapping.cpp b/Source/core/css/LayoutStyleCSSValueMapping.cpp
index a33156932f6c3e183d3e8143a2626baca6d2b4a8..53f3d303c0cc142f0dec02a6f19b15469b2dd5b0 100644
--- a/Source/core/css/LayoutStyleCSSValueMapping.cpp
+++ b/Source/core/css/LayoutStyleCSSValueMapping.cpp
@@ -2556,10 +2556,16 @@ PassRefPtrWillBeRawPtr<CSSValue> LayoutStyleCSSValueMapping::get(CSSPropertyID p
case CSSPropertyEnableBackground:
// the above properties are not yet implemented in the engine
return nullptr;
+ case CSSPropertyCx:
+ return zoomAdjustedPixelValueForLength(svgStyle.cx(), style);
+ case CSSPropertyCy:
+ return zoomAdjustedPixelValueForLength(svgStyle.cy(), style);
case CSSPropertyX:
return zoomAdjustedPixelValueForLength(svgStyle.x(), style);
case CSSPropertyY:
return zoomAdjustedPixelValueForLength(svgStyle.y(), style);
+ case CSSPropertyR:
+ return zoomAdjustedPixelValueForLength(svgStyle.r(), style);
case CSSPropertyRx:
return zoomAdjustedPixelValueForLength(svgStyle.rx(), style);
case CSSPropertyRy:

Powered by Google App Engine
This is Rietveld 408576698