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/ListItemPainter.h" | 6 #include "core/paint/ListItemPainter.h" |
7 | 7 |
| 8 #include "core/layout/LayoutListItem.h" |
8 #include "core/layout/PaintInfo.h" | 9 #include "core/layout/PaintInfo.h" |
9 #include "core/paint/BlockPainter.h" | 10 #include "core/paint/BlockPainter.h" |
10 #include "core/rendering/RenderListItem.h" | |
11 #include "platform/geometry/LayoutPoint.h" | 11 #include "platform/geometry/LayoutPoint.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 void ListItemPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint
Offset) | 15 void ListItemPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint
Offset) |
16 { | 16 { |
17 if (!m_renderListItem.logicalHeight() && m_renderListItem.hasOverflowClip()) | 17 if (!m_layoutListItem.logicalHeight() && m_layoutListItem.hasOverflowClip()) |
18 return; | 18 return; |
19 | 19 |
20 BlockPainter(m_renderListItem).paint(paintInfo, paintOffset); | 20 BlockPainter(m_layoutListItem).paint(paintInfo, paintOffset); |
21 } | 21 } |
22 | 22 |
23 } // namespace blink | 23 } // namespace blink |
OLD | NEW |