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

Unified Diff: Source/platform/graphics/GeneratedImage.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
Index: Source/platform/graphics/GeneratedImage.h
diff --git a/Source/platform/graphics/GeneratedImage.h b/Source/platform/graphics/GeneratedImage.h
index be2cf1d9005b56f4b5417f78e03bdbd509937662..ae8e75c6edde03cf20f84aeea7606e3be85a77c9 100644
--- a/Source/platform/graphics/GeneratedImage.h
+++ b/Source/platform/graphics/GeneratedImage.h
@@ -34,18 +34,18 @@ namespace blink {
class PLATFORM_EXPORT GeneratedImage : public Image {
public:
- virtual bool currentFrameHasSingleSecurityOrigin() const override { return true; }
+ bool currentFrameHasSingleSecurityOrigin() const override { return true; }
- virtual void setContainerSize(const IntSize& size) override { m_size = size; }
- virtual bool usesContainerSize() const override { return true; }
- virtual bool hasRelativeWidth() const override { return true; }
- virtual bool hasRelativeHeight() const override { return true; }
- virtual void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) override;
+ void setContainerSize(const IntSize& size) override { m_size = size; }
+ bool usesContainerSize() const override { return true; }
+ bool hasRelativeWidth() const override { return true; }
+ bool hasRelativeHeight() const override { return true; }
+ void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) override;
- virtual IntSize size() const override { return m_size; }
+ IntSize size() const override { return m_size; }
// Assume that generated content has no decoded data we need to worry about
- virtual void destroyDecodedData(bool) override { }
+ void destroyDecodedData(bool) override { }
protected:
void drawPattern(GraphicsContext*, const FloatRect&,
@@ -53,7 +53,7 @@ protected:
const FloatRect&, const IntSize& repeatSpacing) final;
// FIXME: Implement this to be less conservative.
- virtual bool currentFrameKnownToBeOpaque() override { return false; }
+ bool currentFrameKnownToBeOpaque() override { return false; }
GeneratedImage(const IntSize& size) : m_size(size) { }
« no previous file with comments | « Source/platform/graphics/DeferredImageDecoderTest.cpp ('k') | Source/platform/graphics/GradientGeneratedImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698