OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 virtual void clearTruncation() {} | 311 virtual void clearTruncation() {} |
312 | 312 |
313 bool isDirty() const { return m_bitfields.dirty(); } | 313 bool isDirty() const { return m_bitfields.dirty(); } |
314 virtual void markDirty() { m_bitfields.setDirty(true); } | 314 virtual void markDirty() { m_bitfields.setDirty(true); } |
315 | 315 |
316 virtual void dirtyLineBoxes(); | 316 virtual void dirtyLineBoxes(); |
317 | 317 |
318 virtual SelectionState getSelectionState() const; | 318 virtual SelectionState getSelectionState() const; |
319 | 319 |
320 virtual bool canAccommodateEllipsis(bool ltr, | 320 virtual bool canAccommodateEllipsis(bool ltr, |
321 int blockEdge, | 321 LayoutUnit blockEdge, |
322 int ellipsisWidth) const; | 322 LayoutUnit ellipsisWidth) const; |
323 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. | 323 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. |
324 virtual LayoutUnit placeEllipsisBox(bool ltr, | 324 virtual LayoutUnit placeEllipsisBox(bool ltr, |
325 LayoutUnit visibleLeftEdge, | 325 LayoutUnit visibleLeftEdge, |
326 LayoutUnit visibleRightEdge, | 326 LayoutUnit visibleRightEdge, |
327 LayoutUnit ellipsisWidth, | 327 LayoutUnit ellipsisWidth, |
328 LayoutUnit& truncatedWidth, | 328 LayoutUnit& truncatedWidth, |
329 bool&); | 329 bool&); |
330 | 330 |
331 #if DCHECK_IS_ON() | 331 #if DCHECK_IS_ON() |
332 void setHasBadParent(); | 332 void setHasBadParent(); |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 | 569 |
570 } // namespace blink | 570 } // namespace blink |
571 | 571 |
572 #ifndef NDEBUG | 572 #ifndef NDEBUG |
573 // Outside the WebCore namespace for ease of invocation from gdb. | 573 // Outside the WebCore namespace for ease of invocation from gdb. |
574 void showTree(const blink::InlineBox*); | 574 void showTree(const blink::InlineBox*); |
575 void showLineTree(const blink::InlineBox*); | 575 void showLineTree(const blink::InlineBox*); |
576 #endif | 576 #endif |
577 | 577 |
578 #endif // InlineBox_h | 578 #endif // InlineBox_h |
OLD | NEW |