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 #include "config.h" | 5 #include "config.h" |
6 #include "core/layout/PaintInvalidationState.h" | 6 #include "core/layout/PaintInvalidationState.h" |
7 | 7 |
8 #include "core/layout/LayoutInline.h" | 8 #include "core/layout/LayoutInline.h" |
9 #include "core/layout/LayoutView.h" | 9 #include "core/layout/LayoutView.h" |
10 #include "core/layout/svg/LayoutSVGModelObject.h" | 10 #include "core/layout/svg/LayoutSVGModelObject.h" |
11 #include "core/layout/svg/LayoutSVGRoot.h" | 11 #include "core/layout/svg/LayoutSVGRoot.h" |
12 #include "core/paint/DeprecatedPaintLayer.h" | 12 #include "core/paint/DeprecatedPaintLayer.h" |
13 #include "platform/Partitions.h" | |
14 | 13 |
15 namespace blink { | 14 namespace blink { |
16 | 15 |
17 PaintInvalidationState::PaintInvalidationState(const LayoutView& layoutView, Vec
tor<LayoutObject*>& pendingDelayedPaintInvalidations) | 16 PaintInvalidationState::PaintInvalidationState(const LayoutView& layoutView, Vec
tor<LayoutObject*>& pendingDelayedPaintInvalidations) |
18 : m_clipped(false) | 17 : m_clipped(false) |
19 , m_cachedOffsetsEnabled(true) | 18 , m_cachedOffsetsEnabled(true) |
20 , m_forceCheckForPaintInvalidation(false) | 19 , m_forceCheckForPaintInvalidation(false) |
21 , m_paintInvalidationContainer(*layoutView.containerForPaintInvalidation()) | 20 , m_paintInvalidationContainer(*layoutView.containerForPaintInvalidation()) |
22 , m_pendingDelayedPaintInvalidations(pendingDelayedPaintInvalidations) | 21 , m_pendingDelayedPaintInvalidations(pendingDelayedPaintInvalidations) |
23 { | 22 { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // to be always invalidated in-time. | 127 // to be always invalidated in-time. |
129 if (box.usesCompositedScrolling()) | 128 if (box.usesCompositedScrolling()) |
130 ASSERT(!m_clipped); // The box should establish paint invalidation conta
iner, so no m_clipped inherited. | 129 ASSERT(!m_clipped); // The box should establish paint invalidation conta
iner, so no m_clipped inherited. |
131 else | 130 else |
132 addClipRectRelativeToPaintOffset(LayoutSize(box.layer()->size())); | 131 addClipRectRelativeToPaintOffset(LayoutSize(box.layer()->size())); |
133 | 132 |
134 m_paintOffset -= box.scrolledContentOffset(); | 133 m_paintOffset -= box.scrolledContentOffset(); |
135 } | 134 } |
136 | 135 |
137 } // namespace blink | 136 } // namespace blink |
OLD | NEW |