OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All right r
eserved. | 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All right r
eserved. |
4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 71 } |
72 | 72 |
73 RenderObject* object() const { return m_obj; } | 73 RenderObject* object() const { return m_obj; } |
74 unsigned offset() const { return m_pos; } | 74 unsigned offset() const { return m_pos; } |
75 RenderObject* root() const { return m_root; } | 75 RenderObject* root() const { return m_root; } |
76 | 76 |
77 void fastIncrementInTextNode(); | 77 void fastIncrementInTextNode(); |
78 void increment(InlineBidiResolver* = 0, IncrementRule = FastIncrementInTextN
ode); | 78 void increment(InlineBidiResolver* = 0, IncrementRule = FastIncrementInTextN
ode); |
79 bool atEnd() const; | 79 bool atEnd() const; |
80 | 80 |
81 inline bool atTextParagraphSeparator() | 81 inline bool atTextParagraphSeparator() const |
82 { | 82 { |
83 return m_obj && m_obj->preservesNewline() && m_obj->isText() && toRender
Text(m_obj)->textLength() | 83 return m_obj && m_obj->preservesNewline() && m_obj->isText() && toRender
Text(m_obj)->textLength() |
84 && !toRenderText(m_obj)->isWordBreak() && toRenderText(m_obj)->chara
cterAt(m_pos) == '\n'; | 84 && !toRenderText(m_obj)->isWordBreak() && toRenderText(m_obj)->chara
cterAt(m_pos) == '\n'; |
85 } | 85 } |
86 | 86 |
87 inline bool atParagraphSeparator() | 87 inline bool atParagraphSeparator() const |
88 { | 88 { |
89 return (m_obj && m_obj->isBR()) || atTextParagraphSeparator(); | 89 return (m_obj && m_obj->isBR()) || atTextParagraphSeparator(); |
90 } | 90 } |
91 | 91 |
92 UChar characterAt(unsigned) const; | 92 UChar characterAt(unsigned) const; |
93 UChar current() const; | 93 UChar current() const; |
94 UChar previousInSameNode() const; | 94 UChar previousInSameNode() const; |
95 ALWAYS_INLINE WTF::Unicode::Direction direction() const; | 95 ALWAYS_INLINE WTF::Unicode::Direction direction() const; |
96 | 96 |
97 private: | 97 private: |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 m_sor = m_eor; | 562 m_sor = m_eor; |
563 } | 563 } |
564 | 564 |
565 m_direction = WTF::Unicode::OtherNeutral; | 565 m_direction = WTF::Unicode::OtherNeutral; |
566 m_status.eor = WTF::Unicode::OtherNeutral; | 566 m_status.eor = WTF::Unicode::OtherNeutral; |
567 } | 567 } |
568 | 568 |
569 } | 569 } |
570 | 570 |
571 #endif // InlineIterator_h | 571 #endif // InlineIterator_h |
OLD | NEW |