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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 FloatRect strokeBoundingBox() const final { return m_strokeBoundingBox; } | 85 FloatRect strokeBoundingBox() const final { return m_strokeBoundingBox; } |
86 | 86 |
87 bool nodeAtFloatPoint(HitTestResult&, | 87 bool nodeAtFloatPoint(HitTestResult&, |
88 const FloatPoint& pointInParent, | 88 const FloatPoint& pointInParent, |
89 HitTestAction) override; | 89 HitTestAction) override; |
90 | 90 |
91 // Called during layout to update the local transform. | 91 // Called during layout to update the local transform. |
92 virtual SVGTransformChange calculateLocalTransform(); | 92 virtual SVGTransformChange calculateLocalTransform(); |
93 | 93 |
94 virtual void determineIfLayoutSizeChanged() {} | |
95 | |
96 void updateCachedBoundaries(); | 94 void updateCachedBoundaries(); |
97 | 95 |
98 void descendantIsolationRequirementsChanged(DescendantIsolationState) final; | 96 void descendantIsolationRequirementsChanged(DescendantIsolationState) final; |
99 | 97 |
100 private: | 98 private: |
101 const LayoutObjectChildList* children() const { return &m_children; } | 99 const LayoutObjectChildList* children() const { return &m_children; } |
102 LayoutObjectChildList* children() { return &m_children; } | 100 LayoutObjectChildList* children() { return &m_children; } |
103 | 101 |
104 LayoutObjectChildList m_children; | 102 LayoutObjectChildList m_children; |
105 FloatRect m_objectBoundingBox; | 103 FloatRect m_objectBoundingBox; |
106 FloatRect m_strokeBoundingBox; | 104 FloatRect m_strokeBoundingBox; |
107 bool m_objectBoundingBoxValid; | 105 bool m_objectBoundingBoxValid; |
108 bool m_needsBoundariesUpdate : 1; | 106 bool m_needsBoundariesUpdate : 1; |
109 bool m_didScreenScaleFactorChange : 1; | 107 bool m_didScreenScaleFactorChange : 1; |
110 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 108 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
111 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 109 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
112 }; | 110 }; |
113 | 111 |
114 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer()); | 112 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer()); |
115 | 113 |
116 } // namespace blink | 114 } // namespace blink |
117 | 115 |
118 #endif // LayoutSVGContainer_h | 116 #endif // LayoutSVGContainer_h |
OLD | NEW |