| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.h" | 32 #include "platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.h" |
| 33 | 33 |
| 34 #include "SkTypeface.h" | 34 #include "SkTypeface.h" |
| 35 #include "platform/fonts/harfbuzz/HarfBuzzFace.h" | 35 #include "platform/fonts/harfbuzz/HarfBuzzFace.h" |
| 36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace blink { |
| 39 | 39 |
| 40 FontPlatformData::FontPlatformData(WTF::HashTableDeletedValueType) | 40 FontPlatformData::FontPlatformData(WTF::HashTableDeletedValueType) |
| 41 : m_textSize(0) | 41 : m_textSize(0) |
| 42 , m_syntheticBold(false) | 42 , m_syntheticBold(false) |
| 43 , m_syntheticItalic(false) | 43 , m_syntheticItalic(false) |
| 44 , m_orientation(Horizontal) | 44 , m_orientation(Horizontal) |
| 45 , m_isHashTableDeletedValue(true) | 45 , m_isHashTableDeletedValue(true) |
| 46 #if OS(WIN) | 46 #if OS(WIN) |
| 47 , m_paintTextFlags(0) | 47 , m_paintTextFlags(0) |
| 48 , m_minSizeForAntiAlias(0) | 48 , m_minSizeForAntiAlias(0) |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 } | 212 } |
| 213 | 213 |
| 214 HarfBuzzFace* FontPlatformData::harfBuzzFace() const | 214 HarfBuzzFace* FontPlatformData::harfBuzzFace() const |
| 215 { | 215 { |
| 216 if (!m_harfBuzzFace) | 216 if (!m_harfBuzzFace) |
| 217 m_harfBuzzFace = HarfBuzzFace::create(const_cast<FontPlatformData*>(this
), uniqueID()); | 217 m_harfBuzzFace = HarfBuzzFace::create(const_cast<FontPlatformData*>(this
), uniqueID()); |
| 218 | 218 |
| 219 return m_harfBuzzFace.get(); | 219 return m_harfBuzzFace.get(); |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace WebCore | 222 } // namespace blink |
| OLD | NEW |