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

Side by Side Diff: third_party/WebKit/Source/platform/text/TabSize.h

Issue 1521923002: Make platform/text to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 #ifndef TabSize_h 5 #ifndef TabSize_h
6 #define TabSize_h 6 #define TabSize_h
7 7
8 #include "wtf/Allocator.h"
9
8 namespace blink { 10 namespace blink {
9 11
10 struct TabSize { 12 struct TabSize {
13 DISALLOW_NEW();
11 TabSize(float pixels) 14 TabSize(float pixels)
12 : m_floatValue(pixels) 15 : m_floatValue(pixels)
13 , m_isSpaces(0) 16 , m_isSpaces(0)
14 { 17 {
15 } 18 }
16 19
17 TabSize(int spaces) 20 TabSize(int spaces)
18 : m_floatValue(spaces) 21 : m_floatValue(spaces)
19 , m_isSpaces(1) 22 , m_isSpaces(1)
20 { 23 {
(...skipping 19 matching lines...) Expand all
40 } 43 }
41 44
42 inline bool operator!=(const TabSize& a, const TabSize& b) 45 inline bool operator!=(const TabSize& a, const TabSize& b)
43 { 46 {
44 return !(a == b); 47 return !(a == b);
45 } 48 }
46 49
47 } // namespace blink 50 } // namespace blink
48 51
49 #endif // TabSize_h 52 #endif // TabSize_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/SuffixTree.h ('k') | third_party/WebKit/Source/platform/text/TextBreakIterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698