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

Unified Diff: Source/platform/transforms/ScaleTransformOperation.h

Issue 1158603003: CSS Independent Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase master Created 5 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.h
diff --git a/Source/platform/transforms/ScaleTransformOperation.h b/Source/platform/transforms/ScaleTransformOperation.h
index 8b6fde1e2cfb50e73f884730a5116389687e5d26..4b481c46a3d5e84357cfef7bb1ee6f490fc09c79 100644
--- a/Source/platform/transforms/ScaleTransformOperation.h
+++ b/Source/platform/transforms/ScaleTransformOperation.h
@@ -47,6 +47,11 @@ public:
virtual bool canBlendWith(const TransformOperation& other) const;
+ virtual void apply(TransformationMatrix& transform, const FloatSize&) const override
+ {
+ transform.scale3d(m_x, m_y, m_z);
+ }
+
private:
virtual OperationType type() const override { return m_type; }
@@ -58,11 +63,6 @@ private:
return m_x == s->m_x && m_y == s->m_y && m_z == s->m_z;
}
- virtual void apply(TransformationMatrix& transform, const FloatSize&) const override
- {
- transform.scale3d(m_x, m_y, m_z);
- }
-
virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) override;
ScaleTransformOperation(double sx, double sy, double sz, OperationType type)
« no previous file with comments | « Source/platform/transforms/RotateTransformOperation.h ('k') | Source/platform/transforms/TranslateTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698