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