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