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

Side by Side Diff: Source/core/rendering/svg/RenderSVGGradientStop.h

Issue 135563002: Update remaining rendering classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2009 Google, Inc. 3 * Copyright (C) 2009 Google, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 16 matching lines...) Expand all
27 27
28 class SVGGradientElement; 28 class SVGGradientElement;
29 class SVGStopElement; 29 class SVGStopElement;
30 30
31 // This class exists mostly so we can hear about gradient stop style changes 31 // This class exists mostly so we can hear about gradient stop style changes
32 class RenderSVGGradientStop FINAL : public RenderObject { 32 class RenderSVGGradientStop FINAL : public RenderObject {
33 public: 33 public:
34 explicit RenderSVGGradientStop(SVGStopElement*); 34 explicit RenderSVGGradientStop(SVGStopElement*);
35 virtual ~RenderSVGGradientStop(); 35 virtual ~RenderSVGGradientStop();
36 36
37 virtual const char* renderName() const { return "RenderSVGGradientStop"; } 37 virtual const char* renderName() const OVERRIDE { return "RenderSVGGradientS top"; }
38 virtual bool isSVGGradientStop() const OVERRIDE FINAL { return true; } 38 virtual bool isSVGGradientStop() const OVERRIDE { return true; }
39 virtual bool isSVG() const OVERRIDE FINAL { return true; } 39 virtual bool isSVG() const OVERRIDE { return true; }
40 40
41 virtual void layout(); 41 virtual void layout() OVERRIDE;
42 42
43 // This overrides are needed to prevent ASSERTs on <svg><stop /></svg> 43 // This overrides are needed to prevent ASSERTs on <svg><stop /></svg>
44 // RenderObject's default implementations ASSERT_NOT_REACHED() 44 // RenderObject's default implementations ASSERT_NOT_REACHED()
45 // https://bugs.webkit.org/show_bug.cgi?id=20400 45 // https://bugs.webkit.org/show_bug.cgi?id=20400
46 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t*) const OVERRIDE { return LayoutRect(); } 46 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t*) const OVERRIDE { return LayoutRect(); }
47 virtual FloatRect objectBoundingBox() const { return FloatRect(); } 47 virtual FloatRect objectBoundingBox() const OVERRIDE { return FloatRect(); }
48 virtual FloatRect strokeBoundingBox() const { return FloatRect(); } 48 virtual FloatRect strokeBoundingBox() const OVERRIDE { return FloatRect(); }
49 virtual FloatRect repaintRectInLocalCoordinates() const { return FloatRect() ; } 49 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE { return Fl oatRect(); }
50 50
51 protected: 51 protected:
52 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 52 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
53 53
54 private: 54 private:
55 SVGGradientElement* gradientElement() const; 55 SVGGradientElement* gradientElement() const;
56 }; 56 };
57 57
58 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGGradientStop, isSVGGradientStop()); 58 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGGradientStop, isSVGGradientStop());
59 59
60 } 60 }
61 61
62 #endif // RenderSVGGradientStop_h 62 #endif // RenderSVGGradientStop_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGForeignObject.h ('k') | Source/core/rendering/svg/RenderSVGHiddenContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698