| 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 16 matching lines...) Expand all Loading... |
| 27 #include "platform/text/BidiRunList.h" | 27 #include "platform/text/BidiRunList.h" |
| 28 #include "platform/text/TextDirection.h" | 28 #include "platform/text/TextDirection.h" |
| 29 #include "wtf/Allocator.h" | 29 #include "wtf/Allocator.h" |
| 30 #include "wtf/HashMap.h" | 30 #include "wtf/HashMap.h" |
| 31 #include "wtf/Noncopyable.h" | 31 #include "wtf/Noncopyable.h" |
| 32 #include "wtf/PassRefPtr.h" | 32 #include "wtf/PassRefPtr.h" |
| 33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class LayoutObject; | |
| 38 | |
| 39 template <class Iterator> | 37 template <class Iterator> |
| 40 class MidpointState final { | 38 class MidpointState final { |
| 41 DISALLOW_NEW(); | 39 DISALLOW_NEW(); |
| 42 | 40 |
| 43 public: | 41 public: |
| 44 MidpointState() { reset(); } | 42 MidpointState() { reset(); } |
| 45 | 43 |
| 46 void reset() { | 44 void reset() { |
| 47 m_numMidpoints = 0; | 45 m_numMidpoints = 0; |
| 48 m_currentMidpoint = 0; | 46 m_currentMidpoint = 0; |
| (...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 template <class Iterator, class Run, class IsolatedRun> | 1213 template <class Iterator, class Run, class IsolatedRun> |
| 1216 MidpointState<Iterator> | 1214 MidpointState<Iterator> |
| 1217 BidiResolver<Iterator, Run, IsolatedRun>::midpointStateForIsolatedRun( | 1215 BidiResolver<Iterator, Run, IsolatedRun>::midpointStateForIsolatedRun( |
| 1218 Run& run) { | 1216 Run& run) { |
| 1219 return m_midpointStateForIsolatedRun.take(&run); | 1217 return m_midpointStateForIsolatedRun.take(&run); |
| 1220 } | 1218 } |
| 1221 | 1219 |
| 1222 } // namespace blink | 1220 } // namespace blink |
| 1223 | 1221 |
| 1224 #endif // BidiResolver_h | 1222 #endif // BidiResolver_h |
| OLD | NEW |