summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/core/paint/ListItemPainter.cpp
blob: d1939ea57dbc439020c9c2fd4ca4bd9cea0cfc6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "core/paint/ListItemPainter.h"

#include "core/layout/LayoutListItem.h"
#include "core/paint/BlockPainter.h"
#include "platform/geometry/LayoutPoint.h"

namespace blink {

void ListItemPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
    if (!m_layoutListItem.logicalHeight() && m_layoutListItem.hasOverflowClip())
        return;

    BlockPainter(m_layoutListItem).paint(paintInfo, paintOffset);
}

} // namespace blink