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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 "SmallCapsIterator.h" 5 #include "SmallCapsIterator.h"
6 6
7 #include "wtf/PtrUtil.h" 7 #include "wtf/PtrUtil.h"
8 #include <unicode/utypes.h> 8 #include <unicode/utypes.h>
9 9
10 namespace blink { 10 namespace blink {
11 11
12 SmallCapsIterator::SmallCapsIterator(const UChar* buffer, unsigned bufferSize) 12 SmallCapsIterator::SmallCapsIterator(const UChar* buffer, unsigned bufferSize)
13 : m_utf16Iterator(makeUnique<UTF16TextIterator>(buffer, bufferSize)), 13 : m_utf16Iterator(WTF::makeUnique<UTF16TextIterator>(buffer, bufferSize)),
14 m_bufferSize(bufferSize), 14 m_bufferSize(bufferSize),
15 m_nextUChar32(0), 15 m_nextUChar32(0),
16 m_atEnd(bufferSize == 0), 16 m_atEnd(bufferSize == 0),
17 m_currentSmallCapsBehavior(SmallCapsInvalid) {} 17 m_currentSmallCapsBehavior(SmallCapsInvalid) {}
18 18
19 bool SmallCapsIterator::consume(unsigned* capsLimit, 19 bool SmallCapsIterator::consume(unsigned* capsLimit,
20 SmallCapsBehavior* smallCapsBehavior) { 20 SmallCapsBehavior* smallCapsBehavior) {
21 if (m_atEnd) 21 if (m_atEnd)
22 return false; 22 return false;
23 23
(...skipping 17 matching lines...) Expand all
41 } 41 }
42 m_utf16Iterator->advance(); 42 m_utf16Iterator->advance();
43 } 43 }
44 *capsLimit = m_bufferSize; 44 *capsLimit = m_bufferSize;
45 *smallCapsBehavior = m_currentSmallCapsBehavior; 45 *smallCapsBehavior = m_currentSmallCapsBehavior;
46 m_atEnd = true; 46 m_atEnd = true;
47 return true; 47 return true;
48 } 48 }
49 49
50 } // namespace blink 50 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698