blob: f22b5b21150060ffc41c6ac17f8ff0d87670c573 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// 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
#include "wtf/Allocator.h"
namespace blink {
struct PaintInfo;
class LayoutPoint;
class LayoutUnit;
class RootInlineBox;
class RootInlineBoxPainter {
STACK_ALLOCATED();
public:
RootInlineBoxPainter(const RootInlineBox& rootInlineBox) : m_rootInlineBox(rootInlineBox) { }
void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom);
private:
void paintEllipsisBox(const PaintInfo&, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom) const;
const RootInlineBox& m_rootInlineBox;
};
} // namespace blink
#endif // RootInlineBoxPainter_h
|