| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 direction, isOverride); | 138 direction, isOverride); |
| 139 } | 139 } |
| 140 | 140 |
| 141 BidiStatus(WTF::Unicode::CharDirection eorDir, | 141 BidiStatus(WTF::Unicode::CharDirection eorDir, |
| 142 WTF::Unicode::CharDirection lastStrongDir, | 142 WTF::Unicode::CharDirection lastStrongDir, |
| 143 WTF::Unicode::CharDirection lastDir, | 143 WTF::Unicode::CharDirection lastDir, |
| 144 PassRefPtr<BidiContext> bidiContext) | 144 PassRefPtr<BidiContext> bidiContext) |
| 145 : eor(eorDir), | 145 : eor(eorDir), |
| 146 lastStrong(lastStrongDir), | 146 lastStrong(lastStrongDir), |
| 147 last(lastDir), | 147 last(lastDir), |
| 148 context(bidiContext) {} | 148 context(std::move(bidiContext)) {} |
| 149 | 149 |
| 150 // Creates a BidiStatus for Isolates (RLI/LRI). | 150 // Creates a BidiStatus for Isolates (RLI/LRI). |
| 151 // The rule X5a ans X5b of UAX#9: http://unicode.org/reports/tr9/#X5a | 151 // The rule X5a ans X5b of UAX#9: http://unicode.org/reports/tr9/#X5a |
| 152 static BidiStatus createForIsolate(TextDirection textDirection, | 152 static BidiStatus createForIsolate(TextDirection textDirection, |
| 153 bool isOverride, | 153 bool isOverride, |
| 154 unsigned char level) { | 154 unsigned char level) { |
| 155 WTF::Unicode::CharDirection direction; | 155 WTF::Unicode::CharDirection direction; |
| 156 if (textDirection == TextDirection::kRtl) { | 156 if (textDirection == TextDirection::kRtl) { |
| 157 level = nextGreaterOddLevel(level); | 157 level = nextGreaterOddLevel(level); |
| 158 direction = WTF::Unicode::RightToLeft; | 158 direction = WTF::Unicode::RightToLeft; |
| (...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 template <class Iterator, class Run, class IsolatedRun> | 1216 template <class Iterator, class Run, class IsolatedRun> |
| 1217 MidpointState<Iterator> | 1217 MidpointState<Iterator> |
| 1218 BidiResolver<Iterator, Run, IsolatedRun>::midpointStateForIsolatedRun( | 1218 BidiResolver<Iterator, Run, IsolatedRun>::midpointStateForIsolatedRun( |
| 1219 Run& run) { | 1219 Run& run) { |
| 1220 return m_midpointStateForIsolatedRun.take(&run); | 1220 return m_midpointStateForIsolatedRun.take(&run); |
| 1221 } | 1221 } |
| 1222 | 1222 |
| 1223 } // namespace blink | 1223 } // namespace blink |
| 1224 | 1224 |
| 1225 #endif // BidiResolver_h | 1225 #endif // BidiResolver_h |
| OLD | NEW |