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

Unified Diff: Source/platform/transforms/TranslateTransformOperation.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
« no previous file with comments | « Source/platform/transforms/ScaleTransformOperation.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.h
diff --git a/Source/platform/transforms/TranslateTransformOperation.h b/Source/platform/transforms/TranslateTransformOperation.h
index 67c2aeea9dd94ec8b906e31e6e4eece287b522b4..6ceac11668eb03a4235145d6e221359d410b0bac 100644
--- a/Source/platform/transforms/TranslateTransformOperation.h
+++ b/Source/platform/transforms/TranslateTransformOperation.h
@@ -52,6 +52,11 @@ public:
Length y() const { return m_y; }
double z() const { return m_z; }
+ virtual void apply(TransformationMatrix& transform, const FloatSize& borderBoxSize) const override
+ {
+ transform.translate3d(x(borderBoxSize), y(borderBoxSize), z());
+ }
+
private:
virtual OperationType type() const override { return m_type; }
@@ -63,11 +68,6 @@ private:
return m_x == t->m_x && m_y == t->m_y && m_z == t->m_z;
}
- virtual void apply(TransformationMatrix& transform, const FloatSize& borderBoxSize) const override
- {
- transform.translate3d(x(borderBoxSize), y(borderBoxSize), z());
- }
-
virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) override;
virtual bool dependsOnBoxSize() const override
« no previous file with comments | « Source/platform/transforms/ScaleTransformOperation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698