| 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/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 Loading... |
| 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 |
| OLD | NEW |