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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual FloatRect strokeBoundingBox() const { return FloatRect(); } | 47 virtual FloatRect strokeBoundingBox() const { return FloatRect(); } |
48 virtual FloatRect repaintRectInLocalCoordinates() const { return FloatRect()
; } | 48 virtual FloatRect repaintRectInLocalCoordinates() const { return FloatRect()
; } |
49 | 49 |
50 protected: | 50 protected: |
51 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 51 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
52 | 52 |
53 private: | 53 private: |
54 SVGGradientElement* gradientElement() const; | 54 SVGGradientElement* gradientElement() const; |
55 }; | 55 }; |
56 | 56 |
57 inline const RenderSVGGradientStop* toRenderSVGGradientStop(const RenderObject*
object) | 57 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGGradientStop, isSVGGradientStop()); |
58 { | |
59 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGGradientStop()); | |
60 return static_cast<const RenderSVGGradientStop*>(object); | |
61 } | |
62 | 58 |
63 } | 59 } |
64 | 60 |
65 #endif // RenderSVGGradientStop_h | 61 #endif // RenderSVGGradientStop_h |
OLD | NEW |