diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/platform/transforms/ScaleTransformOperation.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/platform/transforms/ScaleTransformOperation.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/transforms/ScaleTransformOperation.cpp b/chromium/third_party/WebKit/Source/platform/transforms/ScaleTransformOperation.cpp index 829aec99fd0..7509842fab4 100644 --- a/chromium/third_party/WebKit/Source/platform/transforms/ScaleTransformOperation.cpp +++ b/chromium/third_party/WebKit/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 |