Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp

Issue 1847853004: Move Character.h from platform/fonts to platform/text (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "platform/fonts/shaping/RunSegmenter.h" 5 #include "platform/fonts/shaping/RunSegmenter.h"
6 6
7 #include "platform/fonts/Character.h"
8 #include "platform/fonts/ScriptRunIterator.h" 7 #include "platform/fonts/ScriptRunIterator.h"
9 #include "platform/fonts/SmallCapsIterator.h" 8 #include "platform/fonts/SmallCapsIterator.h"
10 #include "platform/fonts/SymbolsIterator.h" 9 #include "platform/fonts/SymbolsIterator.h"
11 #include "platform/fonts/UTF16TextIterator.h" 10 #include "platform/fonts/UTF16TextIterator.h"
11 #include "platform/text/Character.h"
12 #include "wtf/Assertions.h" 12 #include "wtf/Assertions.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 RunSegmenter::RunSegmenter(const UChar* buffer, unsigned bufferSize, FontOrienta tion runOrientation, FontVariant variant) 16 RunSegmenter::RunSegmenter(const UChar* buffer, unsigned bufferSize, FontOrienta tion runOrientation, FontVariant variant)
17 : m_bufferSize(bufferSize) 17 : m_bufferSize(bufferSize)
18 , m_candidateRange({ 0, 0, USCRIPT_INVALID_CODE, OrientationIterator::Orient ationKeep, SmallCapsIterator::SmallCapsSameCase }) 18 , m_candidateRange({ 0, 0, USCRIPT_INVALID_CODE, OrientationIterator::Orient ationKeep, SmallCapsIterator::SmallCapsSameCase })
19 , m_scriptRunIterator(adoptPtr(new ScriptRunIterator(buffer, bufferSize))) 19 , m_scriptRunIterator(adoptPtr(new ScriptRunIterator(buffer, bufferSize)))
20 , m_orientationIterator(runOrientation == FontOrientation::VerticalMixed ? a doptPtr(new OrientationIterator(buffer, bufferSize, runOrientation)) : nullptr) 20 , m_orientationIterator(runOrientation == FontOrientation::VerticalMixed ? a doptPtr(new OrientationIterator(buffer, bufferSize, runOrientation)) : nullptr)
21 , m_smallCapsIterator(variant == FontVariantSmallCaps ? adoptPtr(new SmallCa psIterator(buffer, bufferSize)) : nullptr) 21 , m_smallCapsIterator(variant == FontVariantSmallCaps ? adoptPtr(new SmallCa psIterator(buffer, bufferSize)) : nullptr)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 m_candidateRange.start = m_candidateRange.end; 108 m_candidateRange.start = m_candidateRange.end;
109 m_candidateRange.end = m_lastSplit; 109 m_candidateRange.end = m_lastSplit;
110 *nextRange = m_candidateRange; 110 *nextRange = m_candidateRange;
111 111
112 m_atEnd = m_lastSplit == m_bufferSize; 112 m_atEnd = m_lastSplit == m_bufferSize;
113 return true; 113 return true;
114 } 114 }
115 115
116 116
117 } // namespace blink 117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698