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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 bool strokeContains(const FloatPoint&) const; | 89 bool strokeContains(const FloatPoint&) const; |
90 | 90 |
91 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; } | 91 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; } |
92 FloatRect strokeBoundingBox() const override { return m_strokeBoundingBox; } | 92 FloatRect strokeBoundingBox() const override { return m_strokeBoundingBox; } |
93 FloatRect repaintRectInLocalCoordinates() const override { return m_repaintB
oundingBox; } | 93 FloatRect repaintRectInLocalCoordinates() const override { return m_repaintB
oundingBox; } |
94 FloatRect repaintRectInLocalCoordinatesExcludingSVGShadow() const { return m
_repaintBoundingBoxExcludingShadow; } | 94 FloatRect repaintRectInLocalCoordinatesExcludingSVGShadow() const { return m
_repaintBoundingBoxExcludingShadow; } |
95 | 95 |
96 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio
n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) ove
rride; | 96 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio
n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) ove
rride; |
97 | 97 |
98 LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObject* repai
ntContainer) const override; | 98 LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObject* repai
ntContainer) const override; |
99 FloatRect computeFloatRectForRepaint(const FloatRect&, const RenderLayerMode
lObject* repaintContainer, bool fixed) const override; | 99 std::optional<FloatRect> computeFloatVisibleRectInContainer(const FloatRect&
, const RenderLayerModelObject* container, VisibleRectContext) const override; |
100 | 100 |
101 void mapLocalToContainer(const RenderLayerModelObject* repaintContainer, Tra
nsformState&, MapCoordinatesFlags, bool* wasFixed) const override; | 101 void mapLocalToContainer(const RenderLayerModelObject* repaintContainer, Tra
nsformState&, MapCoordinatesFlags, bool* wasFixed) const override; |
102 const RenderObject* pushMappingToContainer(const RenderLayerModelObject* anc
estorToStopAt, RenderGeometryMap&) const override; | 102 const RenderObject* pushMappingToContainer(const RenderLayerModelObject* anc
estorToStopAt, RenderGeometryMap&) const override; |
103 | 103 |
104 bool canBeSelectionLeaf() const override { return false; } | 104 bool canBeSelectionLeaf() const override { return false; } |
105 bool canHaveChildren() const override { return true; } | 105 bool canHaveChildren() const override { return true; } |
106 | 106 |
107 bool shouldApplyViewportClip() const; | 107 bool shouldApplyViewportClip() const; |
108 void updateCachedBoundaries(); | 108 void updateCachedBoundaries(); |
109 void buildLocalToBorderBoxTransform(); | 109 void buildLocalToBorderBoxTransform(); |
110 | 110 |
111 IntSize m_containerSize; | 111 IntSize m_containerSize; |
112 FloatRect m_objectBoundingBox; | 112 FloatRect m_objectBoundingBox; |
113 bool m_objectBoundingBoxValid; | 113 bool m_objectBoundingBoxValid; |
114 FloatRect m_strokeBoundingBox; | 114 FloatRect m_strokeBoundingBox; |
115 FloatRect m_repaintBoundingBox; | 115 FloatRect m_repaintBoundingBox; |
116 FloatRect m_repaintBoundingBoxExcludingShadow; | 116 FloatRect m_repaintBoundingBoxExcludingShadow; |
117 mutable AffineTransform m_localToParentTransform; | 117 mutable AffineTransform m_localToParentTransform; |
118 AffineTransform m_localToBorderBoxTransform; | 118 AffineTransform m_localToBorderBoxTransform; |
119 HashSet<RenderSVGResourceContainer*> m_resourcesNeedingToInvalidateClients; | 119 HashSet<RenderSVGResourceContainer*> m_resourcesNeedingToInvalidateClients; |
120 bool m_isLayoutSizeChanged : 1; | 120 bool m_isLayoutSizeChanged : 1; |
121 bool m_needsBoundariesOrTransformUpdate : 1; | 121 bool m_needsBoundariesOrTransformUpdate : 1; |
122 bool m_hasSVGShadow : 1; | 122 bool m_hasSVGShadow : 1; |
123 bool m_hasBoxDecorations : 1; | 123 bool m_hasBoxDecorations : 1; |
124 }; | 124 }; |
125 | 125 |
126 } // namespace WebCore | 126 } // namespace WebCore |
127 | 127 |
128 SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSVGRoot, isSVGRoot()) | 128 SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSVGRoot, isSVGRoot()) |
OLD | NEW |