| 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 24 matching lines...) Expand all Loading... |
| 35 : InlineBox(obj, FloatPointWillBeLayoutPoint(x, y), width, firstLine, tr
ue, false, false, isVertical, 0, 0, parent) | 35 : InlineBox(obj, FloatPointWillBeLayoutPoint(x, y), width, firstLine, tr
ue, false, false, isVertical, 0, 0, parent) |
| 36 , m_shouldPaintMarkupBox(markupBox) | 36 , m_shouldPaintMarkupBox(markupBox) |
| 37 , m_height(height) | 37 , m_height(height) |
| 38 , m_str(ellipsisStr) | 38 , m_str(ellipsisStr) |
| 39 , m_selectionState(LayoutObject::SelectionNone) | 39 , m_selectionState(LayoutObject::SelectionNone) |
| 40 { | 40 { |
| 41 setHasVirtualLogicalHeight(); | 41 setHasVirtualLogicalHeight(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop,
LayoutUnit lineBottom) override; | 44 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop,
LayoutUnit lineBottom) override; |
| 45 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit
lineTop, LayoutUnit lineBottom) override; | 45 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo
ntainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit li
neBottom) override; |
| 46 void setSelectionState(LayoutObject::SelectionState s) { m_selectionState =
s; } | 46 void setSelectionState(LayoutObject::SelectionState s) { m_selectionState =
s; } |
| 47 IntRect selectionRect(); | 47 IntRect selectionRect(); |
| 48 | 48 |
| 49 virtual FloatWillBeLayoutUnit virtualLogicalHeight() const override { return
m_height; } | 49 virtual FloatWillBeLayoutUnit virtualLogicalHeight() const override { return
m_height; } |
| 50 virtual LayoutObject::SelectionState selectionState() const override { retur
n m_selectionState; } | 50 virtual LayoutObject::SelectionState selectionState() const override { retur
n m_selectionState; } |
| 51 const AtomicString& ellipsisStr() { return m_str; } | 51 const AtomicString& ellipsisStr() { return m_str; } |
| 52 InlineBox* markupBox() const; | 52 InlineBox* markupBox() const; |
| 53 | 53 |
| 54 virtual const char* boxName() const override; | 54 virtual const char* boxName() const override; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 | 57 |
| 58 bool m_shouldPaintMarkupBox; | 58 bool m_shouldPaintMarkupBox; |
| 59 int m_height; | 59 int m_height; |
| 60 AtomicString m_str; | 60 AtomicString m_str; |
| 61 LayoutObject::SelectionState m_selectionState; | 61 LayoutObject::SelectionState m_selectionState; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace blink | 64 } // namespace blink |
| 65 | 65 |
| 66 #endif // EllipsisBox_h | 66 #endif // EllipsisBox_h |
| OLD | NEW |