OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2009 Google, Inc. All rights reserved. | 4 * Copyright (C) 2009 Google, Inc. All rights reserved. |
5 * Copyright (C) 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2009 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 class LayoutSVGRoot final : public LayoutReplaced { | 32 class LayoutSVGRoot final : public LayoutReplaced { |
33 public: | 33 public: |
34 explicit LayoutSVGRoot(SVGElement*); | 34 explicit LayoutSVGRoot(SVGElement*); |
35 ~LayoutSVGRoot() override; | 35 ~LayoutSVGRoot() override; |
36 | 36 |
37 bool isEmbeddedThroughSVGImage() const; | 37 bool isEmbeddedThroughSVGImage() const; |
38 bool isEmbeddedThroughFrameContainingSVGDocument() const; | 38 bool isEmbeddedThroughFrameContainingSVGDocument() const; |
39 | 39 |
40 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; | 40 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; |
41 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, const PaintInvalidationState*, VisibleRectFlags = DefaultVisibleRect
Flags) const override; | 41 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, VisibleRectFlags = DefaultVisibleRectFlags) const override; |
42 | 42 |
43 // If you have a LayoutSVGRoot, use firstChild or lastChild instead. | 43 // If you have a LayoutSVGRoot, use firstChild or lastChild instead. |
44 void slowFirstChild() const = delete; | 44 void slowFirstChild() const = delete; |
45 void slowLastChild() const = delete; | 45 void slowLastChild() const = delete; |
46 | 46 |
47 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 47 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
48 LayoutObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 48 LayoutObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
49 | 49 |
50 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } | 50 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } |
51 void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdat
e = true; } | 51 void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdat
e = true; } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void willBeRemovedFromTree() override; | 94 void willBeRemovedFromTree() override; |
95 | 95 |
96 const AffineTransform& localToSVGParentTransform() const override; | 96 const AffineTransform& localToSVGParentTransform() const override; |
97 | 97 |
98 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; } | 98 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; } |
99 FloatRect strokeBoundingBox() const override { return m_strokeBoundingBox; } | 99 FloatRect strokeBoundingBox() const override { return m_strokeBoundingBox; } |
100 FloatRect paintInvalidationRectInLocalSVGCoordinates() const override { retu
rn m_paintInvalidationBoundingBox; } | 100 FloatRect paintInvalidationRectInLocalSVGCoordinates() const override { retu
rn m_paintInvalidationBoundingBox; } |
101 | 101 |
102 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) override; | 102 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) override; |
103 | 103 |
104 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec
t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov
erride; | 104 LayoutRect localOverflowRectForPaintInvalidation() const override; |
105 | 105 |
106 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai
ntInvalidationState* = nullptr) const override; | 106 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr) const ove
rride; |
107 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const override; | 107 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const override; |
108 | 108 |
109 bool canBeSelectionLeaf() const override { return false; } | 109 bool canBeSelectionLeaf() const override { return false; } |
110 bool canHaveChildren() const override { return true; } | 110 bool canHaveChildren() const override { return true; } |
111 | 111 |
112 void descendantIsolationRequirementsChanged(DescendantIsolationState) final; | 112 void descendantIsolationRequirementsChanged(DescendantIsolationState) final; |
113 | 113 |
114 void updateCachedBoundaries(); | 114 void updateCachedBoundaries(); |
115 void buildLocalToBorderBoxTransform(); | 115 void buildLocalToBorderBoxTransform(); |
116 | 116 |
(...skipping 12 matching lines...) Expand all Loading... |
129 bool m_hasBoxDecorationBackground : 1; | 129 bool m_hasBoxDecorationBackground : 1; |
130 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 130 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
131 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 131 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
132 }; | 132 }; |
133 | 133 |
134 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); | 134 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); |
135 | 135 |
136 } // namespace blink | 136 } // namespace blink |
137 | 137 |
138 #endif // LayoutSVGRoot_h | 138 #endif // LayoutSVGRoot_h |
OLD | NEW |