blob: 01aa375eb2ea5988cb7b571721c76e35b1a99384 [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 THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_ROOT_INLINE_BOX_PAINTER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_ROOT_INLINE_BOX_PAINTER_H_
#include "third_party/blink/renderer/platform/wtf/allocator.h"
namespace blink {
struct PaintInfo;
class LayoutPoint;
class LayoutUnit;
class RootInlineBox;
class RootInlineBoxPainter {
STACK_ALLOCATED();
public:
RootInlineBoxPainter(const RootInlineBox& root_inline_box)
: root_inline_box_(root_inline_box) {}
void Paint(const PaintInfo&,
const LayoutPoint&,
LayoutUnit line_top,
LayoutUnit line_bottom);
private:
void PaintEllipsisBox(const PaintInfo&,
const LayoutPoint& paint_offset,
LayoutUnit line_top,
LayoutUnit line_bottom) const;
const RootInlineBox& root_inline_box_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_ROOT_INLINE_BOX_PAINTER_H_