OLD | NEW |
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool m_cachedOffsetsEnabled; | 141 bool m_cachedOffsetsEnabled; |
142 bool m_cachedOffsetsForAbsolutePositionEnabled; | 142 bool m_cachedOffsetsForAbsolutePositionEnabled; |
143 | 143 |
144 // The following two fields are never null. Declare them as pointers because | 144 // The following two fields are never null. Declare them as pointers because |
145 // we need some logic to initialize them in the body of the constructor. | 145 // we need some logic to initialize them in the body of the constructor. |
146 | 146 |
147 // The current paint invalidation container for normal flow objects. | 147 // The current paint invalidation container for normal flow objects. |
148 // It is the enclosing composited object. | 148 // It is the enclosing composited object. |
149 const LayoutBoxModelObject* m_paintInvalidationContainer; | 149 const LayoutBoxModelObject* m_paintInvalidationContainer; |
150 | 150 |
| 151 // Adjusts scrolling contents coordinates in non-composited paint invalidation |
| 152 // container into container coordinates. It's empty for non-scrolling or |
| 153 // composited-scrolling paint invalidation container. |
| 154 IntSize m_scrollAdjustment; |
| 155 |
151 // The current paint invalidation container for stacked contents (stacking | 156 // The current paint invalidation container for stacked contents (stacking |
152 // contexts or positioned objects). It is the nearest ancestor composited | 157 // contexts or positioned objects). It is the nearest ancestor composited |
153 // object which establishes a stacking context. See | 158 // object which establishes a stacking context. See |
154 // Source/core/paint/README.md ### PaintInvalidationState for details on how | 159 // Source/core/paint/README.md ### PaintInvalidationState for details on how |
155 // stacked contents' paint invalidation containers differ. | 160 // stacked contents' paint invalidation containers differ. |
156 const LayoutBoxModelObject* m_paintInvalidationContainerForStackedContents; | 161 const LayoutBoxModelObject* m_paintInvalidationContainerForStackedContents; |
157 | 162 |
158 const LayoutObject& m_containerForAbsolutePosition; | 163 const LayoutObject& m_containerForAbsolutePosition; |
159 | 164 |
160 // Transform from the initial viewport coordinate system of an outermost | 165 // Transform from the initial viewport coordinate system of an outermost |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 void mapLocalRectToVisualRectInBacking(const LayoutObject&, | 197 void mapLocalRectToVisualRectInBacking(const LayoutObject&, |
193 LayoutRect&) const override; | 198 LayoutRect&) const override; |
194 | 199 |
195 private: | 200 private: |
196 const PaintInvalidationState& m_paintInvalidationState; | 201 const PaintInvalidationState& m_paintInvalidationState; |
197 }; | 202 }; |
198 | 203 |
199 } // namespace blink | 204 } // namespace blink |
200 | 205 |
201 #endif // PaintInvalidationState_h | 206 #endif // PaintInvalidationState_h |
OLD | NEW |