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

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

Issue 2476813002: Move LayoutObject::m_previousPosition... into a global map in ObjectPaintInvalidator (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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 void setForceSubtreeInvalidationRectUpdateWithinContainer() { 83 void setForceSubtreeInvalidationRectUpdateWithinContainer() {
84 m_forcedSubtreeInvalidationFlags |= 84 m_forcedSubtreeInvalidationFlags |=
85 PaintInvalidatorContext::ForcedSubtreeInvalidationRectUpdate; 85 PaintInvalidatorContext::ForcedSubtreeInvalidationRectUpdate;
86 } 86 }
87 87
88 const LayoutBoxModelObject& paintInvalidationContainer() const { 88 const LayoutBoxModelObject& paintInvalidationContainer() const {
89 return *m_paintInvalidationContainer; 89 return *m_paintInvalidationContainer;
90 } 90 }
91 91
92 // Computes the position of the current object ((0,0) in the space of the 92 // Computes the location of the current object ((0,0) in the space of the
93 // object) in the space of paint invalidation backing. 93 // object) in the space of paint invalidation backing.
94 LayoutPoint computePositionFromPaintInvalidationBacking() const; 94 LayoutPoint computeLocationInBacking() const;
95 95
96 // Returns the rect bounds needed to invalidate paint of this object, 96 // Returns the rect bounds needed to invalidate paint of this object,
97 // in the space of paint invalidation backing. 97 // in the space of paint invalidation backing.
98 LayoutRect computeVisualRectInBacking() const; 98 LayoutRect computeVisualRectInBacking() const;
99 99
100 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const; 100 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const;
101 101
102 PaintLayer& paintingLayer() const; 102 PaintLayer& paintingLayer() const;
103 103
104 const LayoutObject& currentObject() const { return m_currentObject; } 104 const LayoutObject& currentObject() const { return m_currentObject; }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 void mapLocalRectToPaintInvalidationBacking(const LayoutObject&, 191 void mapLocalRectToPaintInvalidationBacking(const LayoutObject&,
192 LayoutRect&) const override; 192 LayoutRect&) const override;
193 193
194 private: 194 private:
195 const PaintInvalidationState& m_paintInvalidationState; 195 const PaintInvalidationState& m_paintInvalidationState;
196 }; 196 };
197 197
198 } // namespace blink 198 } // namespace blink
199 199
200 #endif // PaintInvalidationState_h 200 #endif // PaintInvalidationState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698