blob: 61942eec845f9e60d172983b458a7662ed563bf6 [file] [log] [blame]
// 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.
#ifndef RootInlineBoxPainter_h
#define RootInlineBoxPainter_h
namespace blink {
struct PaintInfo;
class LayoutPoint;
class LayoutUnit;
class RootInlineBox;
class RootInlineBoxPainter {
public:
RootInlineBoxPainter(RootInlineBox& rootInlineBox) : m_rootInlineBox(rootInlineBox) { }
void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom);
private:
void paintEllipsisBox(PaintInfo&, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom) const;
RootInlineBox& m_rootInlineBox;
};
} // namespace blink
#endif // RootInlineBoxPainter_h