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

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

Issue 956553004: Use Length for baselineShiftValue in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: A few more TEs. 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/LayoutStyleCSSValueMapping.cpp
diff --git a/Source/core/css/LayoutStyleCSSValueMapping.cpp b/Source/core/css/LayoutStyleCSSValueMapping.cpp
index cc4be95739c82878c4c54248f031b6447b755cfa..11112df4250c29b74f1119418e637ced3df6e929 100644
--- a/Source/core/css/LayoutStyleCSSValueMapping.cpp
+++ b/Source/core/css/LayoutStyleCSSValueMapping.cpp
@@ -2525,14 +2525,12 @@ PassRefPtrWillBeRawPtr<CSSValue> LayoutStyleCSSValueMapping::get(CSSPropertyID p
return SVGLength::toCSSPrimitiveValue(svgStyle.strokeWidth());
case CSSPropertyBaselineShift: {
switch (svgStyle.baselineShift()) {
- case BS_BASELINE:
- return CSSPrimitiveValue::createIdentifier(CSSValueBaseline);
case BS_SUPER:
return CSSPrimitiveValue::createIdentifier(CSSValueSuper);
case BS_SUB:
return CSSPrimitiveValue::createIdentifier(CSSValueSub);
case BS_LENGTH:
- return SVGLength::toCSSPrimitiveValue(svgStyle.baselineShiftValue());
+ return zoomAdjustedPixelValueForLength(svgStyle.baselineShiftValue(), style);
}
ASSERT_NOT_REACHED();
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698