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 "core/paint/InlineFlowBoxPainter.h" | 5 #include "core/paint/InlineFlowBoxPainter.h" |
6 | 6 |
7 #include "core/layout/LayoutBlock.h" | 7 #include "core/layout/LayoutBlock.h" |
8 #include "core/layout/LayoutInline.h" | 8 #include "core/layout/LayoutInline.h" |
9 #include "core/layout/LayoutView.h" | |
10 #include "core/layout/api/LineLayoutAPIShim.h" | 9 #include "core/layout/api/LineLayoutAPIShim.h" |
11 #include "core/layout/api/LineLayoutBoxModel.h" | 10 #include "core/layout/api/LineLayoutBoxModel.h" |
12 #include "core/layout/api/SelectionState.h" | 11 #include "core/layout/api/SelectionState.h" |
13 #include "core/layout/line/InlineFlowBox.h" | 12 #include "core/layout/line/RootInlineBox.h" |
14 #include "core/paint/BoxPainter.h" | 13 #include "core/paint/BoxPainter.h" |
15 #include "core/paint/PaintInfo.h" | 14 #include "core/paint/PaintInfo.h" |
16 #include "core/paint/PaintLayer.h" | 15 #include "core/paint/PaintLayer.h" |
17 #include "platform/graphics/GraphicsContextStateSaver.h" | 16 #include "platform/graphics/GraphicsContextStateSaver.h" |
18 #include "platform/graphics/paint/DrawingRecorder.h" | 17 #include "platform/graphics/paint/DrawingRecorder.h" |
19 | 18 |
20 namespace blink { | 19 namespace blink { |
21 | 20 |
22 void InlineFlowBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset, const LayoutUnit lineTop, const LayoutUnit lineBottom) | 21 void InlineFlowBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset, const LayoutUnit lineTop, const LayoutUnit lineBottom) |
23 { | 22 { |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 rect.setHeight(logicalHeight); | 317 rect.setHeight(logicalHeight); |
319 } else { | 318 } else { |
320 rect.setX(logicalTop); | 319 rect.setX(logicalTop); |
321 rect.setWidth(logicalHeight); | 320 rect.setWidth(logicalHeight); |
322 } | 321 } |
323 } | 322 } |
324 return rect; | 323 return rect; |
325 } | 324 } |
326 | 325 |
327 } // namespace blink | 326 } // namespace blink |
OLD | NEW |