| 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 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 | 1203 |
| 1204 if (!hardLineBreak && m_runs.runCount()) | 1204 if (!hardLineBreak && m_runs.runCount()) |
| 1205 applyL1Rule(m_runs); | 1205 applyL1Rule(m_runs); |
| 1206 } | 1206 } |
| 1207 | 1207 |
| 1208 template <class Iterator, class Run, class IsolatedRun> | 1208 template <class Iterator, class Run, class IsolatedRun> |
| 1209 void BidiResolver<Iterator, Run, IsolatedRun>::setMidpointStateForIsolatedRun( | 1209 void BidiResolver<Iterator, Run, IsolatedRun>::setMidpointStateForIsolatedRun( |
| 1210 Run& run, | 1210 Run& run, |
| 1211 const MidpointState<Iterator>& midpoint) { | 1211 const MidpointState<Iterator>& midpoint) { |
| 1212 ASSERT(!m_midpointStateForIsolatedRun.contains(&run)); | 1212 ASSERT(!m_midpointStateForIsolatedRun.contains(&run)); |
| 1213 m_midpointStateForIsolatedRun.add(&run, midpoint); | 1213 m_midpointStateForIsolatedRun.insert(&run, midpoint); |
| 1214 } | 1214 } |
| 1215 | 1215 |
| 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 |