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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2620263002: CSS: Scale support for none (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 5650dbe93534fa8b5e2844163ceb4e1889fd2446..a3e6b89cb990f45d57b068b69f12bf60a6e42d1e 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -3598,8 +3598,7 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
}
case CSSPropertyScale: {
if (!style.scale())
- return CSSPrimitiveValue::create(1,
- CSSPrimitiveValue::UnitType::Number);
+ return CSSIdentifierValue::create(CSSValueNone);
CSSValueList* list = CSSValueList::createSpaceSeparated();
list->append(*CSSPrimitiveValue::create(
style.scale()->x(), CSSPrimitiveValue::UnitType::Number));

Powered by Google App Engine
This is Rietveld 408576698