| 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 21 matching lines...) Expand all Loading... |
| 32 class LayoutSVGGradientStop final : public LayoutObject { | 32 class LayoutSVGGradientStop final : public LayoutObject { |
| 33 public: | 33 public: |
| 34 explicit LayoutSVGGradientStop(SVGStopElement*); | 34 explicit LayoutSVGGradientStop(SVGStopElement*); |
| 35 ~LayoutSVGGradientStop() override; | 35 ~LayoutSVGGradientStop() override; |
| 36 | 36 |
| 37 const char* name() const override { return "LayoutSVGGradientStop"; } | 37 const char* name() const override { return "LayoutSVGGradientStop"; } |
| 38 bool isOfType(LayoutObjectType type) const override { | 38 bool isOfType(LayoutObjectType type) const override { |
| 39 return type == LayoutObjectSVG || type == LayoutObjectSVGGradientStop || | 39 return type == LayoutObjectSVG || type == LayoutObjectSVGGradientStop || |
| 40 LayoutObject::isOfType(type); | 40 LayoutObject::isOfType(type); |
| 41 } | 41 } |
| 42 char objectSize() const override { return sizeof(this); } |
| 42 | 43 |
| 43 void layout() override; | 44 void layout() override; |
| 44 | 45 |
| 45 // These overrides are needed to prevent NOTREACHED on <svg><stop /></svg> in | 46 // These overrides are needed to prevent NOTREACHED on <svg><stop /></svg> in |
| 46 // LayoutObject's default implementations. | 47 // LayoutObject's default implementations. |
| 47 LayoutRect localVisualRect() const override { return LayoutRect(); } | 48 LayoutRect localVisualRect() const override { return LayoutRect(); } |
| 48 FloatRect objectBoundingBox() const override { return FloatRect(); } | 49 FloatRect objectBoundingBox() const override { return FloatRect(); } |
| 49 FloatRect strokeBoundingBox() const override { return FloatRect(); } | 50 FloatRect strokeBoundingBox() const override { return FloatRect(); } |
| 50 FloatRect visualRectInLocalSVGCoordinates() const override { | 51 FloatRect visualRectInLocalSVGCoordinates() const override { |
| 51 return FloatRect(); | 52 return FloatRect(); |
| 52 } | 53 } |
| 53 FloatRect localBoundingBoxRectForAccessibility() const final { | 54 FloatRect localBoundingBoxRectForAccessibility() const final { |
| 54 return FloatRect(); | 55 return FloatRect(); |
| 55 } | 56 } |
| 56 | 57 |
| 57 protected: | 58 protected: |
| 58 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; | 59 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; |
| 59 | 60 |
| 60 private: | 61 private: |
| 61 SVGGradientElement* gradientElement() const; | 62 SVGGradientElement* gradientElement() const; |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGGradientStop, isSVGGradientStop()); | 65 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGGradientStop, isSVGGradientStop()); |
| 65 | 66 |
| 66 } // namespace blink | 67 } // namespace blink |
| 67 | 68 |
| 68 #endif // LayoutSVGGradientStop_h | 69 #endif // LayoutSVGGradientStop_h |
| OLD | NEW |