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

Side by Side Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaintInvalidationState_h 5 #ifndef PaintInvalidationState_h
6 #define PaintInvalidationState_h 6 #define PaintInvalidationState_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/paint/PaintInvalidator.h" 9 #include "core/paint/PaintInvalidator.h"
10 #include "platform/geometry/LayoutRect.h" 10 #include "platform/geometry/LayoutRect.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const LayoutBoxModelObject& paintInvalidationContainer() const { 89 const LayoutBoxModelObject& paintInvalidationContainer() const {
90 return *m_paintInvalidationContainer; 90 return *m_paintInvalidationContainer;
91 } 91 }
92 92
93 // Computes the position of the current object ((0,0) in the space of the 93 // Computes the position of the current object ((0,0) in the space of the
94 // object) in the space of paint invalidation backing. 94 // object) in the space of paint invalidation backing.
95 LayoutPoint computePositionFromPaintInvalidationBacking() const; 95 LayoutPoint computePositionFromPaintInvalidationBacking() const;
96 96
97 // Returns the rect bounds needed to invalidate paint of this object, 97 // Returns the rect bounds needed to invalidate paint of this object,
98 // in the space of paint invalidation backing. 98 // in the space of paint invalidation backing.
99 LayoutRect computePaintInvalidationRectInBacking() const; 99 LayoutRect computeVisualRectInBacking() const;
100 100
101 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const; 101 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const;
102 102
103 PaintLayer& paintingLayer() const; 103 PaintLayer& paintingLayer() const;
104 104
105 const LayoutObject& currentObject() const { return m_currentObject; } 105 const LayoutObject& currentObject() const { return m_currentObject; }
106 106
107 private: 107 private:
108 friend class VisualRectMappingTest; 108 friend class VisualRectMappingTest;
109 friend class PaintInvalidatorContextAdapter; 109 friend class PaintInvalidatorContextAdapter;
110 110
111 void mapLocalRectToPaintInvalidationContainer(LayoutRect&) const; 111 void mapLocalRectToPaintInvalidationContainer(LayoutRect&) const;
112 112
113 void updateForCurrentObject(const PaintInvalidationState& parentState); 113 void updateForCurrentObject(const PaintInvalidationState& parentState);
114 void updateForNormalChildren(); 114 void updateForNormalChildren();
115 115
116 LayoutRect computePaintInvalidationRectInBackingForSVG() const; 116 LayoutRect computeVisualRectInBackingForSVG() const;
117 117
118 void addClipRectRelativeToPaintOffset(const LayoutRect& localClipRect); 118 void addClipRectRelativeToPaintOffset(const LayoutRect& localClipRect);
119 119
120 const LayoutObject& m_currentObject; 120 const LayoutObject& m_currentObject;
121 121
122 unsigned m_forcedSubtreeInvalidationFlags; 122 unsigned m_forcedSubtreeInvalidationFlags;
123 123
124 bool m_clipped; 124 bool m_clipped;
125 bool m_clippedForAbsolutePosition; 125 bool m_clippedForAbsolutePosition;
126 126
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void mapLocalRectToPaintInvalidationBacking(const LayoutObject&, 192 void mapLocalRectToPaintInvalidationBacking(const LayoutObject&,
193 LayoutRect&) const override; 193 LayoutRect&) const override;
194 194
195 private: 195 private:
196 const PaintInvalidationState& m_paintInvalidationState; 196 const PaintInvalidationState& m_paintInvalidationState;
197 }; 197 };
198 198
199 } // namespace blink 199 } // namespace blink
200 200
201 #endif // PaintInvalidationState_h 201 #endif // PaintInvalidationState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698