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

Unified Diff: third_party/WebKit/Source/platform/transforms/TransformOperation.h

Issue 2519333004: Don't use post multiplication on transforms with compatible pairs of operations (Closed)
Patch Set: Rename Created 4 years 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/platform/transforms/TransformOperation.h
diff --git a/third_party/WebKit/Source/platform/transforms/TransformOperation.h b/third_party/WebKit/Source/platform/transforms/TransformOperation.h
index 1453ae4dab8efa6b7f766872a6277d19ae6ffb10..004226e46c1b5ac40a99524e3be83c63a5fcc3de 100644
--- a/third_party/WebKit/Source/platform/transforms/TransformOperation.h
+++ b/third_party/WebKit/Source/platform/transforms/TransformOperation.h
@@ -83,6 +83,10 @@ class PLATFORM_EXPORT TransformOperation
virtual PassRefPtr<TransformOperation> zoom(double factor) = 0;
virtual OperationType type() const = 0;
+
+ // https://drafts.csswg.org/css-transforms/#transform-primitives
+ virtual OperationType primitiveType() const { return type(); }
+
bool isSameType(const TransformOperation& other) const {
return other.type() == type();
}

Powered by Google App Engine
This is Rietveld 408576698