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

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

Issue 1213003004: Fix virtual/override/final usage in Source/platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/SkewTransformOperation.h ('k') | Source/platform/weborigin/KURL.cpp » ('j') | 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 63687e9054b50604a61e5edb0ef011987a7f8b39..75223e04253dc2f425aa105e9ea08bfc1d3203a8 100644
--- a/Source/platform/transforms/TranslateTransformOperation.h
+++ b/Source/platform/transforms/TranslateTransformOperation.h
@@ -52,7 +52,7 @@ public:
Length y() const { return m_y; }
double z() const { return m_z; }
- virtual void apply(TransformationMatrix& transform, const FloatSize& borderBoxSize) const override
+ void apply(TransformationMatrix& transform, const FloatSize& borderBoxSize) const override
{
transform.translate3d(x(borderBoxSize), y(borderBoxSize), z());
}
@@ -60,9 +60,9 @@ public:
static bool isMatchingOperationType(OperationType type) { return type == Translate || type == TranslateX || type == TranslateY || type == TranslateZ || type == Translate3D; }
private:
- virtual OperationType type() const override { return m_type; }
+ OperationType type() const override { return m_type; }
- virtual bool operator==(const TransformOperation& o) const override
+ bool operator==(const TransformOperation& o) const override
{
if (!isSameType(o))
return false;
@@ -70,9 +70,9 @@ private:
return m_x == t->m_x && m_y == t->m_y && m_z == t->m_z;
}
- virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) override;
+ PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) override;
- virtual bool dependsOnBoxSize() const override
+ bool dependsOnBoxSize() const override
{
return m_x.hasPercent() || m_y.hasPercent();
}
« no previous file with comments | « Source/platform/transforms/SkewTransformOperation.h ('k') | Source/platform/weborigin/KURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698