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

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

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. Created 7 years, 8 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 12 matching lines...) Expand all
23 23
24 #if ENABLE(SVG) 24 #if ENABLE(SVG)
25 #include "RenderObject.h" 25 #include "RenderObject.h"
26 26
27 namespace WebCore { 27 namespace WebCore {
28 28
29 class SVGGradientElement; 29 class SVGGradientElement;
30 class SVGStopElement; 30 class SVGStopElement;
31 31
32 // This class exists mostly so we can hear about gradient stop style changes 32 // This class exists mostly so we can hear about gradient stop style changes
33 class RenderSVGGradientStop : public RenderObject { 33 class RenderSVGGradientStop FINAL : public RenderObject {
34 public: 34 public:
35 RenderSVGGradientStop(SVGStopElement*); 35 RenderSVGGradientStop(SVGStopElement*);
36 virtual ~RenderSVGGradientStop(); 36 virtual ~RenderSVGGradientStop();
37 37
38 virtual bool isSVGGradientStop() const { return true; } 38 virtual bool isSVGGradientStop() const { return true; }
39 virtual const char* renderName() const { return "RenderSVGGradientStop"; } 39 virtual const char* renderName() const { return "RenderSVGGradientStop"; }
40 40
41 virtual void layout(); 41 virtual void layout();
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>
(...skipping 14 matching lines...) Expand all
58 inline const RenderSVGGradientStop* toRenderSVGGradientStop(const RenderObject* object) 58 inline const RenderSVGGradientStop* toRenderSVGGradientStop(const RenderObject* object)
59 { 59 {
60 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGGradientStop()); 60 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGGradientStop());
61 return static_cast<const RenderSVGGradientStop*>(object); 61 return static_cast<const RenderSVGGradientStop*>(object);
62 } 62 }
63 63
64 } 64 }
65 65
66 #endif // ENABLE(SVG) 66 #endif // ENABLE(SVG)
67 #endif // RenderSVGGradientStop_h 67 #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