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/InlineFlowBoxPainter.h" | 6 #include "core/paint/InlineFlowBoxPainter.h" |
7 | 7 |
| 8 #include "core/layout/Layer.h" |
8 #include "core/paint/BoxPainter.h" | 9 #include "core/paint/BoxPainter.h" |
9 #include "core/rendering/InlineFlowBox.h" | 10 #include "core/rendering/InlineFlowBox.h" |
10 #include "core/rendering/PaintInfo.h" | 11 #include "core/rendering/PaintInfo.h" |
11 #include "core/rendering/RenderBlock.h" | 12 #include "core/rendering/RenderBlock.h" |
12 #include "core/rendering/RenderInline.h" | 13 #include "core/rendering/RenderInline.h" |
13 #include "core/rendering/RenderLayer.h" | |
14 #include "core/rendering/RenderView.h" | 14 #include "core/rendering/RenderView.h" |
15 #include "platform/graphics/GraphicsContextStateSaver.h" | 15 #include "platform/graphics/GraphicsContextStateSaver.h" |
16 #include "platform/graphics/paint/DrawingRecorder.h" | 16 #include "platform/graphics/paint/DrawingRecorder.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 void InlineFlowBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset, const LayoutUnit lineTop, const LayoutUnit lineBottom) | 20 void InlineFlowBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset, const LayoutUnit lineTop, const LayoutUnit lineBottom) |
21 { | 21 { |
22 LayoutRect overflowRect(m_inlineFlowBox.visualOverflowRect(lineTop, lineBott
om)); | 22 LayoutRect overflowRect(m_inlineFlowBox.visualOverflowRect(lineTop, lineBott
om)); |
23 m_inlineFlowBox.flipForWritingMode(overflowRect); | 23 m_inlineFlowBox.flipForWritingMode(overflowRect); |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 rect.setHeight(logicalHeight); | 330 rect.setHeight(logicalHeight); |
331 } else { | 331 } else { |
332 rect.setX(logicalTop); | 332 rect.setX(logicalTop); |
333 rect.setWidth(logicalHeight); | 333 rect.setWidth(logicalHeight); |
334 } | 334 } |
335 } | 335 } |
336 return rect; | 336 return rect; |
337 } | 337 } |
338 | 338 |
339 } // namespace blink | 339 } // namespace blink |
OLD | NEW |