| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 LayoutGeometryMap&) const final; | 50 LayoutGeometryMap&) const final; |
| 51 bool mapToVisualRectInAncestorSpace( | 51 bool mapToVisualRectInAncestorSpace( |
| 52 const LayoutBoxModelObject* ancestor, | 52 const LayoutBoxModelObject* ancestor, |
| 53 LayoutRect&, | 53 LayoutRect&, |
| 54 VisualRectFlags = DefaultVisualRectFlags) const final; | 54 VisualRectFlags = DefaultVisualRectFlags) const final; |
| 55 | 55 |
| 56 AffineTransform localSVGTransform() const final { return m_localTransform; } | 56 AffineTransform localSVGTransform() const final { return m_localTransform; } |
| 57 | 57 |
| 58 PaintLayerType layerTypeRequired() const final { return NoPaintLayer; } | 58 PaintLayerType layerTypeRequired() const final { return NoPaintLayer; } |
| 59 | 59 |
| 60 // DisplayItemClient implementation. |
| 61 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override { |
| 62 // The inherited version doesn't check for SVG effects. |
| 63 return false; |
| 64 } |
| 65 |
| 60 protected: | 66 protected: |
| 61 void willBeDestroyed() override; | 67 void willBeDestroyed() override; |
| 62 | 68 |
| 63 AffineTransform m_localTransform; | 69 AffineTransform m_localTransform; |
| 64 | 70 |
| 65 bool isOfType(LayoutObjectType type) const override { | 71 bool isOfType(LayoutObjectType type) const override { |
| 66 return type == LayoutObjectSVG || LayoutBlockFlow::isOfType(type); | 72 return type == LayoutObjectSVG || LayoutBlockFlow::isOfType(type); |
| 67 } | 73 } |
| 68 | 74 |
| 69 private: | 75 private: |
| 70 LayoutRect absoluteVisualRect() const final; | 76 LayoutRect absoluteVisualRect() const final; |
| 71 | 77 |
| 72 bool allowsOverflowClip() const final; | 78 bool allowsOverflowClip() const final; |
| 73 | 79 |
| 74 void absoluteRects(Vector<IntRect>&, | 80 void absoluteRects(Vector<IntRect>&, |
| 75 const LayoutPoint& accumulatedOffset) const final; | 81 const LayoutPoint& accumulatedOffset) const final; |
| 76 | 82 |
| 77 void updateFromStyle() final; | 83 void updateFromStyle() final; |
| 78 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; | 84 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; |
| 79 | 85 |
| 80 bool nodeAtPoint(HitTestResult&, | 86 bool nodeAtPoint(HitTestResult&, |
| 81 const HitTestLocation& locationInContainer, | 87 const HitTestLocation& locationInContainer, |
| 82 const LayoutPoint& accumulatedOffset, | 88 const LayoutPoint& accumulatedOffset, |
| 83 HitTestAction) override; | 89 HitTestAction) override; |
| 84 | |
| 85 // The inherited version doesn't check for SVG effects. | |
| 86 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override { | |
| 87 return false; | |
| 88 } | |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace blink | 92 } // namespace blink |
| 92 #endif // LayoutSVGBlock_h | 93 #endif // LayoutSVGBlock_h |
| OLD | NEW |