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

Unified Diff: Source/platform/transforms/TranslateTransformOperation.cpp

Issue 328333003: Adding Blink-side 3d Box and Bounds calculations to TransformOperations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing android build Created 6 years, 6 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 | « Source/platform/transforms/TranslateTransformOperation.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/transforms/TranslateTransformOperation.cpp
diff --git a/Source/platform/transforms/TranslateTransformOperation.cpp b/Source/platform/transforms/TranslateTransformOperation.cpp
index 49cf64763674a4def930407fd316fe3281a0d8cc..8c8944925b70af47c3d2c9925a1a82d74628e0a0 100644
--- a/Source/platform/transforms/TranslateTransformOperation.cpp
+++ b/Source/platform/transforms/TranslateTransformOperation.cpp
@@ -40,4 +40,13 @@ PassRefPtr<TransformOperation> TranslateTransformOperation::blend(const Transfor
return TranslateTransformOperation::create(m_x.blend(fromX, progress, ValueRangeAll), m_y.blend(fromY, progress, ValueRangeAll), WebCore::blend(fromZ, m_z, progress), m_type);
}
+bool TranslateTransformOperation::canBlendWith(const TransformOperation& other) const
+{
+ return other.type() == Translate
+ || other.type() == TranslateX
+ || other.type() == TranslateY
+ || other.type() == TranslateZ
+ || other.type() == Translate3D;
+}
+
} // namespace WebCore
« no previous file with comments | « Source/platform/transforms/TranslateTransformOperation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698