| 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 24 matching lines...) Expand all Loading... |
| 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 | 42 |
| 43 void layout() override; | 43 void layout() override; |
| 44 | 44 |
| 45 // This overrides are needed to prevent ASSERTs on <svg><stop /></svg> | 45 // These overrides are needed to prevent NOTREACHED on <svg><stop /></svg> in |
| 46 // LayoutObject's default implementations ASSERT_NOT_REACHED() | 46 // LayoutObject's default implementations. |
| 47 // https://bugs.webkit.org/show_bug.cgi?id=20400 | 47 LayoutRect localVisualRect() const override { return LayoutRect(); } |
| 48 LayoutRect localOverflowRectForPaintInvalidation() const override { | |
| 49 return LayoutRect(); | |
| 50 } | |
| 51 FloatRect objectBoundingBox() const override { return FloatRect(); } | 48 FloatRect objectBoundingBox() const override { return FloatRect(); } |
| 52 FloatRect strokeBoundingBox() const override { return FloatRect(); } | 49 FloatRect strokeBoundingBox() const override { return FloatRect(); } |
| 53 FloatRect paintInvalidationRectInLocalSVGCoordinates() const override { | 50 FloatRect visualRectInLocalSVGCoordinates() const override { |
| 54 return FloatRect(); | 51 return FloatRect(); |
| 55 } | 52 } |
| 56 FloatRect localBoundingBoxRectForAccessibility() const final { | 53 FloatRect localBoundingBoxRectForAccessibility() const final { |
| 57 return FloatRect(); | 54 return FloatRect(); |
| 58 } | 55 } |
| 59 | 56 |
| 60 protected: | 57 protected: |
| 61 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; | 58 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; |
| 62 | 59 |
| 63 private: | 60 private: |
| 64 SVGGradientElement* gradientElement() const; | 61 SVGGradientElement* gradientElement() const; |
| 65 }; | 62 }; |
| 66 | 63 |
| 67 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGGradientStop, isSVGGradientStop()); | 64 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGGradientStop, isSVGGradientStop()); |
| 68 | 65 |
| 69 } // namespace blink | 66 } // namespace blink |
| 70 | 67 |
| 71 #endif // LayoutSVGGradientStop_h | 68 #endif // LayoutSVGGradientStop_h |
| OLD | NEW |