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

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

Issue 2060053002: Set paintingLayerNeedsRepaint() in layout tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set paintingLayerNeedsRepaint() in layout tree Created 4 years, 6 months 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 "platform/geometry/LayoutRect.h" 9 #include "platform/geometry/LayoutRect.h"
10 #include "platform/graphics/PaintInvalidationReason.h" 10 #include "platform/graphics/PaintInvalidationReason.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 LayoutPoint computePositionFromPaintInvalidationBacking() const; 71 LayoutPoint computePositionFromPaintInvalidationBacking() const;
72 72
73 // Returns the rect bounds needed to invalidate paint of this object, 73 // Returns the rect bounds needed to invalidate paint of this object,
74 // in the space of paint invalidation backing. 74 // in the space of paint invalidation backing.
75 LayoutRect computePaintInvalidationRectInBacking() const; 75 LayoutRect computePaintInvalidationRectInBacking() const;
76 76
77 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const; 77 void mapLocalRectToPaintInvalidationBacking(LayoutRect&) const;
78 78
79 PaintLayer& paintingLayer() const; 79 PaintLayer& paintingLayer() const;
80 80
81 #if ENABLE(ASSERT)
82 const LayoutObject& currentObject() const { return m_currentObject; } 81 const LayoutObject& currentObject() const { return m_currentObject; }
83 #endif
84 82
85 private: 83 private:
86 friend class VisualRectMappingTest; 84 friend class VisualRectMappingTest;
87 85
88 void mapLocalRectToPaintInvalidationContainer(LayoutRect&) const; 86 void mapLocalRectToPaintInvalidationContainer(LayoutRect&) const;
89 87
90 void updateForCurrentObject(const PaintInvalidationState& parentState); 88 void updateForCurrentObject(const PaintInvalidationState& parentState);
91 void updateForNormalChildren(); 89 void updateForNormalChildren();
92 90
93 LayoutRect computePaintInvalidationRectInBackingForSVG() const; 91 LayoutRect computePaintInvalidationRectInBackingForSVG() const;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 154
157 #ifdef CHECK_FAST_PATH_SLOW_PATH_EQUALITY 155 #ifdef CHECK_FAST_PATH_SLOW_PATH_EQUALITY
158 void assertFastPathAndSlowPathRectsEqual(const LayoutRect& fastPathRect, con st LayoutRect& slowPathRect) const; 156 void assertFastPathAndSlowPathRectsEqual(const LayoutRect& fastPathRect, con st LayoutRect& slowPathRect) const;
159 bool m_canCheckFastPathSlowPathEquality; 157 bool m_canCheckFastPathSlowPathEquality;
160 #endif 158 #endif
161 }; 159 };
162 160
163 } // namespace blink 161 } // namespace blink
164 162
165 #endif // PaintInvalidationState_h 163 #endif // PaintInvalidationState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | third_party/WebKit/Source/core/layout/api/LayoutBlockItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698