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

Side by Side Diff: Source/core/layout/PaintInvalidationState.cpp

Issue 1041103002: PartitionAlloc: Centralize Partition allocators into one place (Part 1) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutState.cpp ('k') | Source/core/layout/line/InlineBox.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 #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
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
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutState.cpp ('k') | Source/core/layout/line/InlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698