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

Unified Diff: third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.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/animation/CSSTranslateInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
index 1a799ac4b0471a2baf2f728c28bc611c1aa64606..3f667b857e87d60c869c585dfb4cd1159b346753 100644
--- a/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
@@ -159,10 +159,9 @@ void CSSTranslateInterpolationType::applyStandardPropertyValue(
*list.get(TranslateZ), nullptr, conversionData, ValueRangeAll)
.pixels();
- RefPtr<TranslateTransformOperation> result = nullptr;
- if (!x.isZero() || !y.isZero() || z != 0)
- result = TranslateTransformOperation::create(
- x, y, z, TransformOperation::Translate3D);
+ RefPtr<TranslateTransformOperation> result =
+ TranslateTransformOperation::create(x, y, z,
+ TransformOperation::Translate3D);
state.style()->setTranslate(std::move(result));
}

Powered by Google App Engine
This is Rietveld 408576698