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

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

Issue 1857373002: Fix PaintInvalidationState mapping for absolute whose container is above paintInvalidationContainer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@VisualRectMappingTest
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/transforms/AffineTransform.h" 10 #include "platform/transforms/AffineTransform.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 PaintLayer& enclosingSelfPaintingLayer(const LayoutObject&) const; 78 PaintLayer& enclosingSelfPaintingLayer(const LayoutObject&) const;
79 79
80 #if ENABLE(ASSERT) 80 #if ENABLE(ASSERT)
81 const LayoutObject& currentObject() const { return m_currentObject; } 81 const LayoutObject& currentObject() const { return m_currentObject; }
82 #endif 82 #endif
83 83
84 private: 84 private:
85 friend class VisualRectMappingTest; 85 friend class VisualRectMappingTest;
86 86
87 void mapLocalRectToPaintInvalidationContainer(LayoutRect&) const;
88
89 void updateForCurrentObject(const PaintInvalidationState& parentState);
87 void updateForNormalChildren(); 90 void updateForNormalChildren();
88 91
89 LayoutRect computePaintInvalidationRectInBackingForSVG() const; 92 LayoutRect computePaintInvalidationRectInBackingForSVG() const;
90 93
91 void addClipRectRelativeToPaintOffset(const LayoutRect& localClipRect); 94 void addClipRectRelativeToPaintOffset(const LayoutRect& localClipRect);
92 95
93 const LayoutObject& m_currentObject; 96 const LayoutObject& m_currentObject;
94 97
95 bool m_forcedSubtreeInvalidationWithinContainer; 98 bool m_forcedSubtreeInvalidationWithinContainer;
96 bool m_forcedSubtreeInvalidationRectUpdateWithinContainer; 99 bool m_forcedSubtreeInvalidationRectUpdateWithinContainer;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 PaintLayer& m_enclosingSelfPaintingLayer; 140 PaintLayer& m_enclosingSelfPaintingLayer;
138 141
139 #if ENABLE(ASSERT) 142 #if ENABLE(ASSERT)
140 bool m_didUpdateForChildren; 143 bool m_didUpdateForChildren;
141 #endif 144 #endif
142 }; 145 };
143 146
144 } // namespace blink 147 } // namespace blink
145 148
146 #endif // PaintInvalidationState_h 149 #endif // PaintInvalidationState_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698