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

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: doc 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(
95 const LayoutPoint& visualRectLocation) const;
95 96
96 // Returns the rect bounds needed to invalidate paint of this object, 97 // Returns the rect bounds needed to invalidate paint of this object,
97 // in the space of paint invalidation backing. 98 // in the space of paint invalidation backing.
98 LayoutRect computeVisualRectInBacking() const; 99 LayoutRect computeVisualRectInBacking() const;
99 100
100 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const; 101 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const;
101 102
102 PaintLayer& paintingLayer() const; 103 PaintLayer& paintingLayer() const;
103 104
104 const LayoutObject& currentObject() const { return m_currentObject; } 105 const LayoutObject& currentObject() const { return m_currentObject; }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 void mapLocalRectToPaintInvalidationBacking(const LayoutObject&, 192 void mapLocalRectToPaintInvalidationBacking(const LayoutObject&,
192 LayoutRect&) const override; 193 LayoutRect&) const override;
193 194
194 private: 195 private:
195 const PaintInvalidationState& m_paintInvalidationState; 196 const PaintInvalidationState& m_paintInvalidationState;
196 }; 197 };
197 198
198 } // namespace blink 199 } // namespace blink
199 200
200 #endif // PaintInvalidationState_h 201 #endif // PaintInvalidationState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698