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
3 // found in the LICENSE file.
12 : m_floatValue(pixels
)
18 : m_floatValue(spaces
)
28 float getPixelSize(float spaceWidth
) const
30 return m_isSpaces
? m_floatValue
* spaceWidth
: m_floatValue
;
34 unsigned m_isSpaces
: 1;
37 inline bool operator==(const TabSize
& a
, const TabSize
& b
)
39 return (a
.m_floatValue
== b
.m_floatValue
) && (a
.m_isSpaces
== b
.m_isSpaces
);
42 inline bool operator!=(const TabSize
& a
, const TabSize
& b
)