OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 21 matching lines...) Expand all Loading... |
32 EllipsisBox(LayoutObject& obj, const AtomicString& ellipsisStr, InlineFlowBo
x* parent, | 32 EllipsisBox(LayoutObject& obj, const AtomicString& ellipsisStr, InlineFlowBo
x* parent, |
33 int width, int height, int x, int y, bool firstLine, bool isVertical) | 33 int width, int height, int x, int y, bool firstLine, bool isVertical) |
34 : InlineBox(obj, LayoutPoint(x, y), width, firstLine, true, false, false
, isVertical, 0, 0, parent) | 34 : InlineBox(obj, LayoutPoint(x, y), width, firstLine, true, false, false
, isVertical, 0, 0, parent) |
35 , m_height(height) | 35 , m_height(height) |
36 , m_str(ellipsisStr) | 36 , m_str(ellipsisStr) |
37 , m_selectionState(LayoutObject::SelectionNone) | 37 , m_selectionState(LayoutObject::SelectionNone) |
38 { | 38 { |
39 setHasVirtualLogicalHeight(); | 39 setHasVirtualLogicalHeight(); |
40 } | 40 } |
41 | 41 |
42 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop,
LayoutUnit lineBottom) override; | 42 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU
nit lineBottom) override; |
43 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo
ntainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit li
neBottom) override; | 43 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom
) override; |
44 void setSelectionState(LayoutObject::SelectionState s) { m_selectionState =
s; } | 44 void setSelectionState(LayoutObject::SelectionState s) { m_selectionState =
s; } |
45 IntRect selectionRect(); | 45 IntRect selectionRect(); |
46 | 46 |
47 virtual LayoutUnit virtualLogicalHeight() const override { return m_height;
} | 47 LayoutUnit virtualLogicalHeight() const override { return m_height; } |
48 virtual LayoutObject::SelectionState selectionState() const override { retur
n m_selectionState; } | 48 LayoutObject::SelectionState selectionState() const override { return m_sele
ctionState; } |
49 const AtomicString& ellipsisStr() { return m_str; } | 49 const AtomicString& ellipsisStr() { return m_str; } |
50 | 50 |
51 virtual const char* boxName() const override; | 51 const char* boxName() const override; |
52 | 52 |
53 private: | 53 private: |
54 | 54 |
55 int m_height; | 55 int m_height; |
56 AtomicString m_str; | 56 AtomicString m_str; |
57 LayoutObject::SelectionState m_selectionState; | 57 LayoutObject::SelectionState m_selectionState; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace blink | 60 } // namespace blink |
61 | 61 |
62 #endif // EllipsisBox_h | 62 #endif // EllipsisBox_h |
OLD | NEW |