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

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

Issue 2643643007: CSS: Translate 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 e50a948574f2ca8cd96a776b7bac68d06d7fc228..6862c52a196ac94ec8dfb27934af08fcbd2d5bc1 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -3538,8 +3538,7 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
style);
case CSSPropertyTranslate: {
if (!style.translate())
- return CSSPrimitiveValue::create(0,
- CSSPrimitiveValue::UnitType::Pixels);
+ return CSSIdentifierValue::create(CSSValueNone);
CSSValueList* list = CSSValueList::createSpaceSeparated();
if (layoutObject && layoutObject->isBox()) {

Powered by Google App Engine
This is Rietveld 408576698