| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |