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

Unified Diff: third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp

Issue 2377243002: Add support for CSSValue->CSSSimpleLength when it is a percentage. (Closed)
Patch Set: Update test expectations Created 4 years, 3 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 | « third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp b/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp
index 3dd43b33f27318d2e9a2f2bdef3ef7ab0193be12..7b0ab807be203c68c4ea61b99628646711aaa88b 100644
--- a/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp
@@ -23,7 +23,7 @@ CSSStyleValue* styleValueForPrimitiveValue(const CSSPrimitiveValue& primitiveVal
{
if (primitiveValue.isNumber())
return CSSNumberValue::create(primitiveValue.getDoubleValue());
- if (primitiveValue.isLength())
+ if (primitiveValue.isLength() || primitiveValue.isPercentage())
return CSSSimpleLength::fromCSSValue(primitiveValue);
return nullptr;
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698