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

Unified Diff: Source/core/layout/svg/LayoutSVGText.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/LayoutSVGTSpan.h ('k') | Source/core/layout/svg/LayoutSVGTextPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGText.h
diff --git a/Source/core/layout/svg/LayoutSVGText.h b/Source/core/layout/svg/LayoutSVGText.h
index bee0603182c4070620faaee4b4456355f89067ea..247682bb793d9e4d53122400bfe6d4c1cc134d5e 100644
--- a/Source/core/layout/svg/LayoutSVGText.h
+++ b/Source/core/layout/svg/LayoutSVGText.h
@@ -35,14 +35,14 @@ class LayoutSVGInlineText;
class LayoutSVGText final : public LayoutSVGBlock {
public:
explicit LayoutSVGText(SVGTextElement*);
- virtual ~LayoutSVGText();
+ ~LayoutSVGText() override;
- virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
+ bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
void setNeedsPositioningValuesUpdate() { m_needsPositioningValuesUpdate = true; }
- virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
+ void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
void setNeedsTextMetricsUpdate() { m_needsTextMetricsUpdate = true; }
- virtual FloatRect paintInvalidationRectInLocalCoordinates() const override;
+ FloatRect paintInvalidationRectInLocalCoordinates() const override;
static LayoutSVGText* locateLayoutSVGTextAncestor(LayoutObject*);
static const LayoutSVGText* locateLayoutSVGTextAncestor(const LayoutObject*);
@@ -56,29 +56,29 @@ public:
void subtreeStyleDidChange();
void subtreeTextDidChange(LayoutSVGInlineText*);
- virtual const AffineTransform& localToParentTransform() const override { return m_localTransform; }
+ const AffineTransform& localToParentTransform() const override { return m_localTransform; }
- virtual const char* name() const override { return "LayoutSVGText"; }
+ const char* name() const override { return "LayoutSVGText"; }
private:
- virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGText || LayoutSVGBlock::isOfType(type); }
+ bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGText || LayoutSVGBlock::isOfType(type); }
- virtual void paint(const PaintInfo&, const LayoutPoint&) override;
- virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTestAction) override;
- virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override;
+ void paint(const PaintInfo&, const LayoutPoint&) override;
+ bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTestAction) override;
+ PositionWithAffinity positionForPoint(const LayoutPoint&) override;
- virtual void layout() override;
+ void layout() override;
- virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const override;
+ void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const override;
- virtual void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) override;
- virtual void removeChild(LayoutObject*) override;
- virtual void willBeDestroyed() override;
+ void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) override;
+ void removeChild(LayoutObject*) override;
+ void willBeDestroyed() override;
- virtual FloatRect objectBoundingBox() const override { return frameRect(); }
- virtual FloatRect strokeBoundingBox() const override;
+ FloatRect objectBoundingBox() const override { return frameRect(); }
+ FloatRect strokeBoundingBox() const override;
- virtual RootInlineBox* createRootInlineBox() override;
+ RootInlineBox* createRootInlineBox() override;
bool shouldHandleSubtreeMutations() const;
« no previous file with comments | « Source/core/layout/svg/LayoutSVGTSpan.h ('k') | Source/core/layout/svg/LayoutSVGTextPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698