Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 LayoutObject* beforeChild = nullptr) override; 118 LayoutObject* beforeChild = nullptr) override;
119 void removeChild(LayoutObject*) override; 119 void removeChild(LayoutObject*) override;
120 120
121 void insertedIntoTree() override; 121 void insertedIntoTree() override;
122 void willBeRemovedFromTree() override; 122 void willBeRemovedFromTree() override;
123 123
124 const AffineTransform& localToSVGParentTransform() const override; 124 const AffineTransform& localToSVGParentTransform() const override;
125 125
126 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; } 126 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; }
127 FloatRect strokeBoundingBox() const override { return m_strokeBoundingBox; } 127 FloatRect strokeBoundingBox() const override { return m_strokeBoundingBox; }
128 FloatRect paintInvalidationRectInLocalSVGCoordinates() const override { 128 FloatRect visualRectInLocalSVGCoordinates() const override {
129 return m_paintInvalidationBoundingBox; 129 return m_visualRectInLocalSVGCoordinates;
130 } 130 }
131 131
132 bool nodeAtPoint(HitTestResult&, 132 bool nodeAtPoint(HitTestResult&,
133 const HitTestLocation& locationInContainer, 133 const HitTestLocation& locationInContainer,
134 const LayoutPoint& accumulatedOffset, 134 const LayoutPoint& accumulatedOffset,
135 HitTestAction) override; 135 HitTestAction) override;
136 136
137 LayoutRect localOverflowRectForPaintInvalidation() const override; 137 LayoutRect localVisualRect() const override;
138 138
139 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final { 139 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final {
140 // The rule is the same as LayoutBox's instead of LayoutReplaced's. 140 // The rule is the same as LayoutBox's instead of LayoutReplaced's.
141 return LayoutBox::paintedOutputOfObjectHasNoEffectRegardlessOfSize(); 141 return LayoutBox::paintedOutputOfObjectHasNoEffectRegardlessOfSize();
142 } 142 }
143 143
144 void mapLocalToAncestor( 144 void mapLocalToAncestor(
145 const LayoutBoxModelObject* ancestor, 145 const LayoutBoxModelObject* ancestor,
146 TransformState&, 146 TransformState&,
147 MapCoordinatesFlags = ApplyContainerFlip) const override; 147 MapCoordinatesFlags = ApplyContainerFlip) const override;
148 const LayoutObject* pushMappingToContainer( 148 const LayoutObject* pushMappingToContainer(
149 const LayoutBoxModelObject* ancestorToStopAt, 149 const LayoutBoxModelObject* ancestorToStopAt,
150 LayoutGeometryMap&) const override; 150 LayoutGeometryMap&) const override;
151 151
152 bool canBeSelectionLeaf() const override { return false; } 152 bool canBeSelectionLeaf() const override { return false; }
153 bool canHaveChildren() const override { return true; } 153 bool canHaveChildren() const override { return true; }
154 154
155 void descendantIsolationRequirementsChanged(DescendantIsolationState) final; 155 void descendantIsolationRequirementsChanged(DescendantIsolationState) final;
156 156
157 void updateCachedBoundaries(); 157 void updateCachedBoundaries();
158 void buildLocalToBorderBoxTransform(); 158 void buildLocalToBorderBoxTransform();
159 159
160 PositionWithAffinity positionForPoint(const LayoutPoint&) final; 160 PositionWithAffinity positionForPoint(const LayoutPoint&) final;
161 161
162 LayoutObjectChildList m_children; 162 LayoutObjectChildList m_children;
163 IntSize m_containerSize; 163 IntSize m_containerSize;
164 FloatRect m_objectBoundingBox; 164 FloatRect m_objectBoundingBox;
165 bool m_objectBoundingBoxValid; 165 bool m_objectBoundingBoxValid;
166 FloatRect m_strokeBoundingBox; 166 FloatRect m_strokeBoundingBox;
167 FloatRect m_paintInvalidationBoundingBox; 167 FloatRect m_visualRectInLocalSVGCoordinates;
168 mutable AffineTransform m_localToParentTransform; 168 mutable AffineTransform m_localToParentTransform;
169 AffineTransform m_localToBorderBoxTransform; 169 AffineTransform m_localToBorderBoxTransform;
170 bool m_isLayoutSizeChanged : 1; 170 bool m_isLayoutSizeChanged : 1;
171 bool m_didScreenScaleFactorChange : 1; 171 bool m_didScreenScaleFactorChange : 1;
172 bool m_needsBoundariesOrTransformUpdate : 1; 172 bool m_needsBoundariesOrTransformUpdate : 1;
173 bool m_hasBoxDecorationBackground : 1; 173 bool m_hasBoxDecorationBackground : 1;
174 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 174 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
175 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 175 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
176 }; 176 };
177 177
178 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 178 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
179 179
180 } // namespace blink 180 } // namespace blink
181 181
182 #endif // LayoutSVGRoot_h 182 #endif // LayoutSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698