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

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: Correct equality operators and remove dependencies on size() in parser 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..73cb82c4f139e201325f476ab5886f2d839cf84c 100644
--- a/Source/platform/transforms/ScaleTransformOperation.h
+++ b/Source/platform/transforms/ScaleTransformOperation.h
@@ -46,8 +46,6 @@ public:
double z() const { return m_z; }
virtual bool canBlendWith(const TransformOperation& other) const;
-
-private:
virtual OperationType type() const override { return m_type; }
virtual bool operator==(const TransformOperation& o) const override
@@ -58,6 +56,7 @@ private:
return m_x == s->m_x && m_y == s->m_y && m_z == s->m_z;
}
+private:
virtual void apply(TransformationMatrix& transform, const FloatSize&) const override
{
transform.scale3d(m_x, m_y, m_z);
@@ -80,6 +79,8 @@ private:
OperationType m_type;
};
+DEFINE_TRANSFORM_TYPE_CASTS(ScaleTransformOperation, isScaleTransformOperation());
+
} // namespace blink
#endif // ScaleTransformOperation_h

Powered by Google App Engine
This is Rietveld 408576698