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

Unified Diff: Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 1162453002: [svg2] Make SVGLength wrap a CSSPrimitiveValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nit Created 5 years, 7 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/parser/CSSParserFastPaths.cpp ('k') | Source/core/svg/SVGAnimatedLength.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleBuilderConverter.cpp
diff --git a/Source/core/css/resolver/StyleBuilderConverter.cpp b/Source/core/css/resolver/StyleBuilderConverter.cpp
index 75b3a6c10977c0ee2f40c4b100cec5a181b02f35..5f6784ada6ffdfd403b6c0733f552172f229248d 100644
--- a/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -199,6 +199,8 @@ static float computeFontSize(StyleResolverState& state, CSSPrimitiveValue* primi
return primitiveValue->computeLength<float>(conversionData);
if (primitiveValue->isCalculatedPercentageWithLength())
return primitiveValue->cssCalcValue()->toCalcValue(conversionData)->evaluate(parentSize.value);
+ if (primitiveValue->isNumber())
+ return primitiveValue->getFloatValue();
ASSERT_NOT_REACHED();
return 0;
« no previous file with comments | « Source/core/css/parser/CSSParserFastPaths.cpp ('k') | Source/core/svg/SVGAnimatedLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698