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

Unified Diff: Source/platform/transforms/ScaleTransformOperation.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
Index: Source/platform/transforms/ScaleTransformOperation.cpp
diff --git a/Source/platform/transforms/ScaleTransformOperation.cpp b/Source/platform/transforms/ScaleTransformOperation.cpp
index 829aec99fd04abd276209b98211cbc56e1eb25a9..7509842fab400798a3552f9cdef3abb87210f7af 100644
--- a/Source/platform/transforms/ScaleTransformOperation.cpp
+++ b/Source/platform/transforms/ScaleTransformOperation.cpp
@@ -45,4 +45,14 @@ PassRefPtr<TransformOperation> ScaleTransformOperation::blend(const TransformOpe
WebCore::blend(fromZ, m_z, progress), m_type);
}
+
+bool ScaleTransformOperation::canBlendWith(const TransformOperation& other) const
+{
+ return other.type() == ScaleX
+ || other.type() == ScaleY
+ || other.type() == ScaleZ
+ || other.type() == Scale3D
+ || other.type() == Scale;
+}
+
} // namespace WebCore
« no previous file with comments | « Source/platform/transforms/ScaleTransformOperation.h ('k') | Source/platform/transforms/SkewTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698