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

Unified Diff: Source/core/layout/svg/LayoutSVGImage.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (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/core/layout/svg/LayoutSVGHiddenContainer.h ('k') | Source/core/layout/svg/LayoutSVGInline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGImage.h
diff --git a/Source/core/layout/svg/LayoutSVGImage.h b/Source/core/layout/svg/LayoutSVGImage.h
index 700cc242d2040bc7d7803eec7442aff83f79fa99..f1b14de4de71bb3fe50b307d16edb0333c113ccc 100644
--- a/Source/core/layout/svg/LayoutSVGImage.h
+++ b/Source/core/layout/svg/LayoutSVGImage.h
@@ -36,41 +36,41 @@ class SVGImageElement;
class LayoutSVGImage final : public LayoutSVGModelObject {
public:
explicit LayoutSVGImage(SVGImageElement*);
- virtual ~LayoutSVGImage();
+ ~LayoutSVGImage() override;
- virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesUpdate = true; }
- virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
+ void setNeedsBoundariesUpdate() override { m_needsBoundariesUpdate = true; }
+ void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
LayoutImageResource* imageResource() { return m_imageResource.get(); }
- virtual const AffineTransform& localToParentTransform() const override { return m_localTransform; }
+ const AffineTransform& localToParentTransform() const override { return m_localTransform; }
RefPtr<const SkPicture>& bufferedForeground() { return m_bufferedForeground; }
- virtual FloatRect objectBoundingBox() const override { return m_objectBoundingBox; }
- virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGImage || LayoutSVGModelObject::isOfType(type); }
+ FloatRect objectBoundingBox() const override { return m_objectBoundingBox; }
+ bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGImage || LayoutSVGModelObject::isOfType(type); }
- virtual const char* name() const override { return "LayoutSVGImage"; }
+ const char* name() const override { return "LayoutSVGImage"; }
protected:
- virtual void willBeDestroyed() override;
+ void willBeDestroyed() override;
private:
- virtual FloatRect strokeBoundingBox() const override { return m_objectBoundingBox; }
+ FloatRect strokeBoundingBox() const override { return m_objectBoundingBox; }
- virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffset) const override;
+ void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffset) const override;
- virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override;
+ void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override;
- virtual void layout() override;
- virtual void paint(const PaintInfo&, const LayoutPoint&) override;
+ void layout() override;
+ void paint(const PaintInfo&, const LayoutPoint&) override;
void updateBoundingBox();
void updateImageContainerSize();
FloatSize computeImageViewportSize(ImageResource&) const;
- virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTestAction) override;
+ bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTestAction) override;
- virtual AffineTransform localTransform() const override { return m_localTransform; }
+ AffineTransform localTransform() const override { return m_localTransform; }
bool m_needsBoundariesUpdate : 1;
bool m_needsTransformUpdate : 1;
« no previous file with comments | « Source/core/layout/svg/LayoutSVGHiddenContainer.h ('k') | Source/core/layout/svg/LayoutSVGInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698