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 Apple Inc. All right reserved. | 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008 Apple Inc. All right 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 if (dir == WTF::Unicode::LeftToRight || dir == WTF::Unicode::ArabicN
umber || dir == WTF::Unicode::EuropeanNumber) | 128 if (dir == WTF::Unicode::LeftToRight || dir == WTF::Unicode::ArabicN
umber || dir == WTF::Unicode::EuropeanNumber) |
129 m_level++; | 129 m_level++; |
130 } else { | 130 } else { |
131 if (dir == WTF::Unicode::RightToLeft) | 131 if (dir == WTF::Unicode::RightToLeft) |
132 m_level++; | 132 m_level++; |
133 else if (dir == WTF::Unicode::ArabicNumber || dir == WTF::Unicode::E
uropeanNumber) | 133 else if (dir == WTF::Unicode::ArabicNumber || dir == WTF::Unicode::E
uropeanNumber) |
134 m_level += 2; | 134 m_level += 2; |
135 } | 135 } |
136 } | 136 } |
137 | 137 |
138 void destroy() { delete this; } | |
139 | |
140 int start() const { return m_start; } | 138 int start() const { return m_start; } |
141 int stop() const { return m_stop; } | 139 int stop() const { return m_stop; } |
142 unsigned char level() const { return m_level; } | 140 unsigned char level() const { return m_level; } |
143 bool reversed(bool visuallyOrdered) { return m_level % 2 && !visuallyOrdered
; } | 141 bool reversed(bool visuallyOrdered) { return m_level % 2 && !visuallyOrdered
; } |
144 bool dirOverride(bool visuallyOrdered) { return m_override || visuallyOrdere
d; } | 142 bool dirOverride(bool visuallyOrdered) { return m_override || visuallyOrdere
d; } |
145 | 143 |
146 BidiCharacterRun* next() const { return m_next; } | 144 BidiCharacterRun* next() const { return m_next; } |
147 void setNext(BidiCharacterRun* next) { m_next = next; } | 145 void setNext(BidiCharacterRun* next) { m_next = next; } |
148 | 146 |
149 // Do not add anything apart from bitfields until after m_next. See https://
bugs.webkit.org/show_bug.cgi?id=100173 | 147 // Do not add anything apart from bitfields until after m_next. See https://
bugs.webkit.org/show_bug.cgi?id=100173 |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 } | 912 } |
915 | 913 |
916 m_runs.setLogicallyLastRun(m_runs.lastRun()); | 914 m_runs.setLogicallyLastRun(m_runs.lastRun()); |
917 reorderRunsFromLevels(); | 915 reorderRunsFromLevels(); |
918 endOfLine = Iterator(); | 916 endOfLine = Iterator(); |
919 } | 917 } |
920 | 918 |
921 } // namespace WebCore | 919 } // namespace WebCore |
922 | 920 |
923 #endif // BidiResolver_h | 921 #endif // BidiResolver_h |
OLD | NEW |