| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 const char* name() const override { return "LayoutSVGHiddenContainer"; } | 35 const char* name() const override { return "LayoutSVGHiddenContainer"; } |
| 36 | 36 |
| 37 protected: | 37 protected: |
| 38 void layout() override; | 38 void layout() override; |
| 39 | 39 |
| 40 bool isOfType(LayoutObjectType type) const override { | 40 bool isOfType(LayoutObjectType type) const override { |
| 41 return type == LayoutObjectSVGHiddenContainer || | 41 return type == LayoutObjectSVGHiddenContainer || |
| 42 LayoutSVGContainer::isOfType(type); | 42 LayoutSVGContainer::isOfType(type); |
| 43 } | 43 } |
| 44 char objectSize() const override { return sizeof(this); } |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 // LayoutSVGHiddenContainer paints nothing. | 47 // LayoutSVGHiddenContainer paints nothing. |
| 47 void paint(const PaintInfo&, const LayoutPoint&) const final {} | 48 void paint(const PaintInfo&, const LayoutPoint&) const final {} |
| 48 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final { | 49 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final { |
| 49 return true; | 50 return true; |
| 50 } | 51 } |
| 51 LayoutRect absoluteVisualRect() const final { return LayoutRect(); } | 52 LayoutRect absoluteVisualRect() const final { return LayoutRect(); } |
| 52 FloatRect visualRectInLocalSVGCoordinates() const final { | 53 FloatRect visualRectInLocalSVGCoordinates() const final { |
| 53 return FloatRect(); | 54 return FloatRect(); |
| 54 } | 55 } |
| 55 void absoluteQuads(Vector<FloatQuad>&, | 56 void absoluteQuads(Vector<FloatQuad>&, |
| 56 MapCoordinatesFlags mode = 0) const final {} | 57 MapCoordinatesFlags mode = 0) const final {} |
| 57 | 58 |
| 58 bool nodeAtFloatPoint(HitTestResult&, | 59 bool nodeAtFloatPoint(HitTestResult&, |
| 59 const FloatPoint& pointInParent, | 60 const FloatPoint& pointInParent, |
| 60 HitTestAction) final; | 61 HitTestAction) final; |
| 61 }; | 62 }; |
| 62 } // namespace blink | 63 } // namespace blink |
| 63 | 64 |
| 64 #endif // LayoutSVGHiddenContainer_h | 65 #endif // LayoutSVGHiddenContainer_h |
| OLD | NEW |