OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r
ights 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 unsigned char bidiLevel() const { return m_bitfields.bidiEmbeddingLevel(); } | 250 unsigned char bidiLevel() const { return m_bitfields.bidiEmbeddingLevel(); } |
251 void setBidiLevel(unsigned char level) { m_bitfields.setBidiEmbeddingLevel(l
evel); } | 251 void setBidiLevel(unsigned char level) { m_bitfields.setBidiEmbeddingLevel(l
evel); } |
252 TextDirection direction() const { return bidiLevel() % 2 ? RTL : LTR; } | 252 TextDirection direction() const { return bidiLevel() % 2 ? RTL : LTR; } |
253 bool isLeftToRightDirection() const { return direction() == LTR; } | 253 bool isLeftToRightDirection() const { return direction() == LTR; } |
254 int caretLeftmostOffset() const { return isLeftToRightDirection() ? caretMin
Offset() : caretMaxOffset(); } | 254 int caretLeftmostOffset() const { return isLeftToRightDirection() ? caretMin
Offset() : caretMaxOffset(); } |
255 int caretRightmostOffset() const { return isLeftToRightDirection() ? caretMa
xOffset() : caretMinOffset(); } | 255 int caretRightmostOffset() const { return isLeftToRightDirection() ? caretMa
xOffset() : caretMinOffset(); } |
256 | 256 |
257 virtual void clearTruncation() { } | 257 virtual void clearTruncation() { } |
258 | 258 |
259 bool isDirty() const { return m_bitfields.dirty(); } | 259 bool isDirty() const { return m_bitfields.dirty(); } |
260 virtual void markDirty(bool dirty = true) { m_bitfields.setDirty(dirty); } | 260 virtual void markDirty() { m_bitfields.setDirty(true); } |
261 | 261 |
262 virtual void dirtyLineBoxes(); | 262 virtual void dirtyLineBoxes(); |
263 | 263 |
264 virtual RenderObject::SelectionState selectionState(); | 264 virtual RenderObject::SelectionState selectionState(); |
265 | 265 |
266 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid
th) const; | 266 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid
th) const; |
267 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. | 267 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. |
268 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl
eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&); | 268 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl
eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&); |
269 | 269 |
270 #ifndef NDEBUG | 270 #ifndef NDEBUG |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 | 445 |
446 } // namespace WebCore | 446 } // namespace WebCore |
447 | 447 |
448 #ifndef NDEBUG | 448 #ifndef NDEBUG |
449 // Outside the WebCore namespace for ease of invocation from gdb. | 449 // Outside the WebCore namespace for ease of invocation from gdb. |
450 void showTree(const WebCore::InlineBox*); | 450 void showTree(const WebCore::InlineBox*); |
451 void showLineTree(const WebCore::InlineBox*); | 451 void showLineTree(const WebCore::InlineBox*); |
452 #endif | 452 #endif |
453 | 453 |
454 #endif // InlineBox_h | 454 #endif // InlineBox_h |
OLD | NEW |