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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 class SVGElement; | 27 class SVGElement; |
28 | 28 |
29 class LayoutSVGBlock : public LayoutBlockFlow { | 29 class LayoutSVGBlock : public LayoutBlockFlow { |
30 public: | 30 public: |
31 explicit LayoutSVGBlock(SVGElement*); | 31 explicit LayoutSVGBlock(SVGElement*); |
32 | 32 |
33 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec
t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const fi
nal; | 33 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec
t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const fi
nal; |
34 | 34 |
35 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai
ntInvalidationState* = nullptr) const final; | 35 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai
ntInvalidationState* = nullptr) const final; |
| 36 void mapAncestorToLocal(const LayoutBoxModelObject* ancestor, TransformState
&, MapCoordinatesFlags = ApplyContainerFlip) const final; |
36 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const final; | 37 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const final; |
37 | 38 |
38 AffineTransform localTransform() const final { return m_localTransform; } | 39 AffineTransform localTransform() const final { return m_localTransform; } |
39 | 40 |
40 PaintLayerType layerTypeRequired() const final { return NoPaintLayer; } | 41 PaintLayerType layerTypeRequired() const final { return NoPaintLayer; } |
41 | 42 |
42 void invalidateTreeIfNeeded(PaintInvalidationState&) override; | 43 void invalidateTreeIfNeeded(PaintInvalidationState&) override; |
43 | 44 |
44 protected: | 45 protected: |
45 void willBeDestroyed() override; | 46 void willBeDestroyed() override; |
46 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, const PaintInvalidationState*) const final; | 47 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, const PaintInvalidationState*) const final; |
47 | 48 |
48 AffineTransform m_localTransform; | 49 AffineTransform m_localTransform; |
49 | 50 |
50 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVG || LayoutBlockFlow::isOfType(type); } | 51 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVG || LayoutBlockFlow::isOfType(type); } |
51 private: | 52 private: |
52 void updateFromStyle() final; | 53 void updateFromStyle() final; |
53 | 54 |
54 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c
onst final; | 55 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c
onst final; |
55 | 56 |
56 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; | 57 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; |
57 | 58 |
58 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) override; | 59 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) override; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace blink | 62 } // namespace blink |
62 #endif // LayoutSVGBlock_h | 63 #endif // LayoutSVGBlock_h |
OLD | NEW |