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

Side by Side Diff: Source/core/paint/BlockFlowPainter.cpp

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/page/scrolling/ScrollingCoordinator.cpp ('k') | Source/core/paint/BlockPainter.h » ('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/paint/BlockFlowPainter.h" 6 #include "core/paint/BlockFlowPainter.h"
7 7
8 #include "core/layout/FloatingObjects.h" 8 #include "core/layout/FloatingObjects.h"
9 #include "core/layout/Layer.h" 9 #include "core/layout/Layer.h"
10 #include "core/layout/PaintInfo.h" 10 #include "core/layout/PaintInfo.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 LayoutRect gapRectsBounds = m_renderBlockFlow.selectionGaps(&m_renderBlo ckFlow, paintOffset, LayoutSize(), lastTop, lastLeft, lastRight, 65 LayoutRect gapRectsBounds = m_renderBlockFlow.selectionGaps(&m_renderBlo ckFlow, paintOffset, LayoutSize(), lastTop, lastLeft, lastRight,
66 recorder.canUseCachedDrawing() ? nullptr : &paintInfo); 66 recorder.canUseCachedDrawing() ? nullptr : &paintInfo);
67 if (!gapRectsBounds.isEmpty()) { 67 if (!gapRectsBounds.isEmpty()) {
68 Layer* layer = m_renderBlockFlow.enclosingLayer(); 68 Layer* layer = m_renderBlockFlow.enclosingLayer();
69 gapRectsBounds.moveBy(-paintOffset); 69 gapRectsBounds.moveBy(-paintOffset);
70 if (!m_renderBlockFlow.hasLayer()) { 70 if (!m_renderBlockFlow.hasLayer()) {
71 LayoutRect localBounds(gapRectsBounds); 71 LayoutRect localBounds(gapRectsBounds);
72 m_renderBlockFlow.flipForWritingMode(localBounds); 72 m_renderBlockFlow.flipForWritingMode(localBounds);
73 gapRectsBounds = m_renderBlockFlow.localToContainerQuad(FloatRec t(localBounds), layer->renderer()).enclosingBoundingBox(); 73 gapRectsBounds = m_renderBlockFlow.localToContainerQuad(FloatRec t(localBounds), layer->renderer()).enclosingBoundingBox();
74 if (layer->renderer()->hasOverflowClip()) 74 if (layer->renderer()->hasOverflowClip())
75 gapRectsBounds.move(layer->renderBox()->scrolledContentOffse t()); 75 gapRectsBounds.move(layer->layoutBox()->scrolledContentOffse t());
76 } 76 }
77 layer->addBlockSelectionGapsBounds(gapRectsBounds); 77 layer->addBlockSelectionGapsBounds(gapRectsBounds);
78 } 78 }
79 } 79 }
80 } 80 }
81 81
82 } // namespace blink 82 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/scrolling/ScrollingCoordinator.cpp ('k') | Source/core/paint/BlockPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698