| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 return !(status1 == status2); | 112 return !(status1 == status2); |
| 113 } | 113 } |
| 114 | 114 |
| 115 struct BidiCharacterRun { | 115 struct BidiCharacterRun { |
| 116 BidiCharacterRun(int start, int stop, BidiContext* context, WTF::Unicode::Di
rection dir) | 116 BidiCharacterRun(int start, int stop, BidiContext* context, WTF::Unicode::Di
rection dir) |
| 117 : m_override(context->override()) | 117 : m_override(context->override()) |
| 118 , m_next(0) | 118 , m_next(0) |
| 119 , m_start(start) | 119 , m_start(start) |
| 120 , m_stop(stop) | 120 , m_stop(stop) |
| 121 { | 121 { |
| 122 ASSERT(m_start <= m_stop); |
| 122 if (dir == WTF::Unicode::OtherNeutral) | 123 if (dir == WTF::Unicode::OtherNeutral) |
| 123 dir = context->dir(); | 124 dir = context->dir(); |
| 124 | 125 |
| 125 m_level = context->level(); | 126 m_level = context->level(); |
| 126 | 127 |
| 127 // add level of run (cases I1 & I2) | 128 // add level of run (cases I1 & I2) |
| 128 if (m_level % 2) { | 129 if (m_level % 2) { |
| 129 if (dir == WTF::Unicode::LeftToRight || dir == WTF::Unicode::ArabicN
umber || dir == WTF::Unicode::EuropeanNumber) | 130 if (dir == WTF::Unicode::LeftToRight || dir == WTF::Unicode::ArabicN
umber || dir == WTF::Unicode::EuropeanNumber) |
| 130 m_level++; | 131 m_level++; |
| 131 } else { | 132 } else { |
| (...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 template<class Iterator, class Run> | 973 template<class Iterator, class Run> |
| 973 MidpointState<Iterator> BidiResolver<Iterator, Run>::midpointStateForIsolatedRun
(Run* run) | 974 MidpointState<Iterator> BidiResolver<Iterator, Run>::midpointStateForIsolatedRun
(Run* run) |
| 974 { | 975 { |
| 975 return m_midpointStateForIsolatedRun.take(run); | 976 return m_midpointStateForIsolatedRun.take(run); |
| 976 } | 977 } |
| 977 | 978 |
| 978 | 979 |
| 979 } // namespace WebCore | 980 } // namespace WebCore |
| 980 | 981 |
| 981 #endif // BidiResolver_h | 982 #endif // BidiResolver_h |
| OLD | NEW |