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

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

Issue 1421533006: Make SVGLength wrap a CSSPrimitiveValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the initial types on properties Created 5 years, 1 month 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: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
index ccdd3374aba7b1ae0b9696b3c7c79996c6a266c6..a9c349be636a5993f85fcd74f2f71530d4c2dd19 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -210,6 +210,8 @@ static float computeFontSize(StyleResolverState& state, const CSSPrimitiveValue&
return primitiveValue.computeLength<float>(conversionData);
if (primitiveValue.isCalculatedPercentageWithLength())
return primitiveValue.cssCalcValue()->toCalcValue(conversionData)->evaluate(parentSize.value);
+ if (primitiveValue.isNumber())
Timothy Loh 2015/11/04 00:33:44 Don't think this is needed, probably left in from
Stephen Chennney 2015/11/04 18:04:47 Done.
+ return primitiveValue.getFloatValue();
ASSERT_NOT_REACHED();
return 0;

Powered by Google App Engine
This is Rietveld 408576698