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 #ifndef EllipsisBoxPainter_h | 5 #ifndef EllipsisBoxPainter_h |
6 #define EllipsisBoxPainter_h | 6 #define EllipsisBoxPainter_h |
7 | 7 |
8 #include "wtf/Allocator.h" | 8 #include "wtf/Allocator.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 class EllipsisBoxPainter { | 22 class EllipsisBoxPainter { |
23 STACK_ALLOCATED(); | 23 STACK_ALLOCATED(); |
24 public: | 24 public: |
25 EllipsisBoxPainter(const EllipsisBox& ellipsisBox) : m_ellipsisBox(ellipsisB
ox) { } | 25 EllipsisBoxPainter(const EllipsisBox& ellipsisBox) : m_ellipsisBox(ellipsisB
ox) { } |
26 | 26 |
27 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU
nit lineBottom); | 27 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU
nit lineBottom); |
28 | 28 |
29 private: | 29 private: |
30 void paintEllipsis(const PaintInfo&, const LayoutPoint& paintOffset, LayoutU
nit lineTop, LayoutUnit lineBottom, const ComputedStyle&); | 30 void paintEllipsis(const PaintInfo&, const LayoutPoint& paintOffset, LayoutU
nit lineTop, LayoutUnit lineBottom, const ComputedStyle&); |
31 void paintSelection(GraphicsContext*, const LayoutPoint&, const ComputedStyl
e&, const Font&); | 31 void paintSelection(GraphicsContext&, const LayoutPoint&, const ComputedStyl
e&, const Font&); |
32 | 32 |
33 const EllipsisBox& m_ellipsisBox; | 33 const EllipsisBox& m_ellipsisBox; |
34 }; | 34 }; |
35 | 35 |
36 } // namespace blink | 36 } // namespace blink |
37 | 37 |
38 #endif // EllipsisBoxPainter_h | 38 #endif // EllipsisBoxPainter_h |
OLD | NEW |