| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 virtual LayoutUnit lineHeight() const; | 294 virtual LayoutUnit lineHeight() const; |
| 295 | 295 |
| 296 virtual int caretMinOffset() const; | 296 virtual int caretMinOffset() const; |
| 297 virtual int caretMaxOffset() const; | 297 virtual int caretMaxOffset() const; |
| 298 | 298 |
| 299 unsigned char bidiLevel() const { return m_bitfields.bidiEmbeddingLevel(); } | 299 unsigned char bidiLevel() const { return m_bitfields.bidiEmbeddingLevel(); } |
| 300 void setBidiLevel(unsigned char level) { | 300 void setBidiLevel(unsigned char level) { |
| 301 m_bitfields.setBidiEmbeddingLevel(level); | 301 m_bitfields.setBidiEmbeddingLevel(level); |
| 302 } | 302 } |
| 303 TextDirection direction() const { | 303 TextDirection direction() const { |
| 304 return bidiLevel() % 2 ? TextDirection::Rtl : TextDirection::Ltr; | 304 return bidiLevel() % 2 ? TextDirection::kRtl : TextDirection::kLtr; |
| 305 } | 305 } |
| 306 bool isLeftToRightDirection() const { | 306 bool isLeftToRightDirection() const { |
| 307 return direction() == TextDirection::Ltr; | 307 return direction() == TextDirection::kLtr; |
| 308 } | 308 } |
| 309 int caretLeftmostOffset() const { | 309 int caretLeftmostOffset() const { |
| 310 return isLeftToRightDirection() ? caretMinOffset() : caretMaxOffset(); | 310 return isLeftToRightDirection() ? caretMinOffset() : caretMaxOffset(); |
| 311 } | 311 } |
| 312 int caretRightmostOffset() const { | 312 int caretRightmostOffset() const { |
| 313 return isLeftToRightDirection() ? caretMaxOffset() : caretMinOffset(); | 313 return isLeftToRightDirection() ? caretMaxOffset() : caretMinOffset(); |
| 314 } | 314 } |
| 315 | 315 |
| 316 virtual void clearTruncation() {} | 316 virtual void clearTruncation() {} |
| 317 | 317 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 | 574 |
| 575 } // namespace blink | 575 } // namespace blink |
| 576 | 576 |
| 577 #ifndef NDEBUG | 577 #ifndef NDEBUG |
| 578 // Outside the WebCore namespace for ease of invocation from gdb. | 578 // Outside the WebCore namespace for ease of invocation from gdb. |
| 579 void showTree(const blink::InlineBox*); | 579 void showTree(const blink::InlineBox*); |
| 580 void showLineTree(const blink::InlineBox*); | 580 void showLineTree(const blink::InlineBox*); |
| 581 #endif | 581 #endif |
| 582 | 582 |
| 583 #endif // InlineBox_h | 583 #endif // InlineBox_h |
| OLD | NEW |