OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. |
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 bool lineCanAccommodateEllipsis(bool ltr, | 106 bool lineCanAccommodateEllipsis(bool ltr, |
107 LayoutUnit blockEdge, | 107 LayoutUnit blockEdge, |
108 LayoutUnit lineBoxEdge, | 108 LayoutUnit lineBoxEdge, |
109 LayoutUnit ellipsisWidth); | 109 LayoutUnit ellipsisWidth); |
110 // Return the truncatedWidth, the width of the truncated text + ellipsis. | 110 // Return the truncatedWidth, the width of the truncated text + ellipsis. |
111 LayoutUnit placeEllipsis(const AtomicString& ellipsisStr, | 111 LayoutUnit placeEllipsis(const AtomicString& ellipsisStr, |
112 bool ltr, | 112 bool ltr, |
113 LayoutUnit blockLeftEdge, | 113 LayoutUnit blockLeftEdge, |
114 LayoutUnit blockRightEdge, | 114 LayoutUnit blockRightEdge, |
115 LayoutUnit ellipsisWidth); | 115 LayoutUnit ellipsisWidth, |
| 116 LayoutUnit logicalLeftOffset, |
| 117 bool foundBox); |
116 // Return the position of the EllipsisBox or -1. | 118 // Return the position of the EllipsisBox or -1. |
117 LayoutUnit placeEllipsisBox(bool ltr, | 119 LayoutUnit placeEllipsisBox(bool ltr, |
118 LayoutUnit blockLeftEdge, | 120 LayoutUnit blockLeftEdge, |
119 LayoutUnit blockRightEdge, | 121 LayoutUnit blockRightEdge, |
120 LayoutUnit ellipsisWidth, | 122 LayoutUnit ellipsisWidth, |
121 LayoutUnit& truncatedWidth, | 123 LayoutUnit& truncatedWidth, |
122 bool& foundBox) final; | 124 bool& foundBox, |
| 125 LayoutUnit logicalLeftOffset) final; |
123 | 126 |
124 using InlineBox::hasEllipsisBox; | 127 using InlineBox::hasEllipsisBox; |
125 EllipsisBox* ellipsisBox() const; | 128 EllipsisBox* ellipsisBox() const; |
126 | 129 |
127 void clearTruncation() final; | 130 void clearTruncation() final; |
128 | 131 |
129 int baselinePosition(FontBaseline baselineType) const final; | 132 int baselinePosition(FontBaseline baselineType) const final; |
130 LayoutUnit lineHeight() const final; | 133 LayoutUnit lineHeight() const final; |
131 | 134 |
132 void paint(const PaintInfo&, | 135 void paint(const PaintInfo&, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 LayoutUnit m_lineBottom; | 230 LayoutUnit m_lineBottom; |
228 LayoutUnit m_lineTopWithLeading; | 231 LayoutUnit m_lineTopWithLeading; |
229 LayoutUnit m_lineBottomWithLeading; | 232 LayoutUnit m_lineBottomWithLeading; |
230 LayoutUnit m_selectionBottom; | 233 LayoutUnit m_selectionBottom; |
231 LayoutUnit m_paginationStrut; | 234 LayoutUnit m_paginationStrut; |
232 }; | 235 }; |
233 | 236 |
234 } // namespace blink | 237 } // namespace blink |
235 | 238 |
236 #endif // RootInlineBox_h | 239 #endif // RootInlineBox_h |
OLD | NEW |