OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "OrientationIterator.h" | 5 #include "OrientationIterator.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 OrientationIterator::OrientationIterator(const UChar* buffer, unsigned bufferSiz
e, FontOrientation runOrientation) | 9 OrientationIterator::OrientationIterator(const UChar* buffer, unsigned bufferSiz
e, FontOrientation runOrientation) |
10 : m_utf16Iterator(adoptPtr(new UTF16TextIterator(buffer, bufferSize))) | 10 : m_utf16Iterator(adoptPtr(new UTF16TextIterator(buffer, bufferSize))) |
(...skipping 22 matching lines...) Expand all Loading... |
33 return true; | 33 return true; |
34 } | 34 } |
35 m_utf16Iterator->advance(); | 35 m_utf16Iterator->advance(); |
36 } | 36 } |
37 *orientationLimit = m_bufferSize; | 37 *orientationLimit = m_bufferSize; |
38 *renderOrientation = m_currentRenderOrientation; | 38 *renderOrientation = m_currentRenderOrientation; |
39 m_atEnd = true; | 39 m_atEnd = true; |
40 return true; | 40 return true; |
41 } | 41 } |
42 | 42 |
43 } | 43 } // namespace blink |
OLD | NEW |