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

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
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | Source/core/css/parser/CSSParserFastPaths.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/LayoutStyleCSSValueMapping.cpp
diff --git a/Source/core/css/LayoutStyleCSSValueMapping.cpp b/Source/core/css/LayoutStyleCSSValueMapping.cpp
index 4f3d85cb7b9e4a923b0cbb9316e474e95946f6b1..a9df62ebd833142dbd5951407bfd2c6901d78d5f 100644
--- a/Source/core/css/LayoutStyleCSSValueMapping.cpp
+++ b/Source/core/css/LayoutStyleCSSValueMapping.cpp
@@ -2564,10 +2564,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:
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | Source/core/css/parser/CSSParserFastPaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698