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

Side by Side Diff: third_party/WebKit/Source/core/paint/BlockPainter.cpp

Issue 2713673005: client-goodbye
Patch Set: Created 3 years, 9 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 #include "core/paint/BlockPainter.h" 5 #include "core/paint/BlockPainter.h"
6 6
7 #include "core/editing/DragCaret.h" 7 #include "core/editing/DragCaret.h"
8 #include "core/editing/FrameSelection.h" 8 #include "core/editing/FrameSelection.h"
9 #include "core/layout/LayoutFlexibleBox.h" 9 #include "core/layout/LayoutFlexibleBox.h"
10 #include "core/layout/LayoutInline.h" 10 #include "core/layout/LayoutInline.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 m_scopedScrollProperty.emplace( 211 m_scopedScrollProperty.emplace(
212 paintInfo.context.getPaintController(), m_layoutBlock, 212 paintInfo.context.getPaintController(), m_layoutBlock,
213 DisplayItem::paintPhaseToDrawingType(paintPhase), properties); 213 DisplayItem::paintPhaseToDrawingType(paintPhase), properties);
214 scrolledPaintInfo.emplace(paintInfo); 214 scrolledPaintInfo.emplace(paintInfo);
215 scrolledPaintInfo->updateCullRect( 215 scrolledPaintInfo->updateCullRect(
216 scrollTranslation->matrix().toAffineTransform()); 216 scrollTranslation->matrix().toAffineTransform());
217 } 217 }
218 } else if (m_layoutBlock.hasOverflowClip()) { 218 } else if (m_layoutBlock.hasOverflowClip()) {
219 IntSize scrollOffset = m_layoutBlock.scrolledContentOffset(); 219 IntSize scrollOffset = m_layoutBlock.scrolledContentOffset();
220 if (m_layoutBlock.layer()->scrollsOverflow() || !scrollOffset.isZero()) { 220 if (m_layoutBlock.layer()->scrollsOverflow() || !scrollOffset.isZero()) {
221 scrollRecorder.emplace(paintInfo.context, m_layoutBlock, paintPhase, 221 scrollRecorder.emplace(
222 scrollOffset); 222 paintInfo.context, paintPhase, scrollOffset,
223 m_layoutBlock.visualRect(), m_layoutBlock.debugName(),
224 m_layoutBlock.paintedOutputOfObjectHasNoEffectRegardlessOfSize());
223 scrolledPaintInfo.emplace(paintInfo); 225 scrolledPaintInfo.emplace(paintInfo);
224 AffineTransform transform; 226 AffineTransform transform;
225 transform.translate(-scrollOffset.width(), -scrollOffset.height()); 227 transform.translate(-scrollOffset.width(), -scrollOffset.height());
226 scrolledPaintInfo->updateCullRect(transform); 228 scrolledPaintInfo->updateCullRect(transform);
227 } 229 }
228 } 230 }
229 231
230 const PaintInfo& contentsPaintInfo = 232 const PaintInfo& contentsPaintInfo =
231 scrolledPaintInfo ? *scrolledPaintInfo : paintInfo; 233 scrolledPaintInfo ? *scrolledPaintInfo : paintInfo;
232 234
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 303 }
302 304
303 void BlockPainter::paintContents(const PaintInfo& paintInfo, 305 void BlockPainter::paintContents(const PaintInfo& paintInfo,
304 const LayoutPoint& paintOffset) { 306 const LayoutPoint& paintOffset) {
305 DCHECK(!m_layoutBlock.childrenInline()); 307 DCHECK(!m_layoutBlock.childrenInline());
306 PaintInfo paintInfoForDescendants = paintInfo.forDescendants(); 308 PaintInfo paintInfoForDescendants = paintInfo.forDescendants();
307 m_layoutBlock.paintChildren(paintInfoForDescendants, paintOffset); 309 m_layoutBlock.paintChildren(paintInfoForDescendants, paintOffset);
308 } 310 }
309 311
310 } // namespace blink 312 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698