OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
6 #include "core/css/BinaryDataFontFaceSource.h" | 6 #include "core/css/BinaryDataFontFaceSource.h" |
7 | 7 |
8 #include "platform/SharedBuffer.h" | 8 #include "platform/SharedBuffer.h" |
9 #include "platform/fonts/FontCustomPlatformData.h" | 9 #include "platform/fonts/FontCustomPlatformData.h" |
10 #include "platform/fonts/FontDescription.h" | 10 #include "platform/fonts/FontDescription.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 bool BinaryDataFontFaceSource::isValid() const | 24 bool BinaryDataFontFaceSource::isValid() const |
25 { | 25 { |
26 return m_customPlatformData; | 26 return m_customPlatformData; |
27 } | 27 } |
28 | 28 |
29 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData(const FontDe
scription& fontDescription) | 29 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData(const FontDe
scription& fontDescription) |
30 { | 30 { |
31 return SimpleFontData::create( | 31 return SimpleFontData::create( |
32 m_customPlatformData->fontPlatformData(fontDescription.effectiveFontSize
(), | 32 m_customPlatformData->fontPlatformData(fontDescription.effectiveFontSize
(), |
33 fontDescription.isSyntheticBold(), fontDescription.isSyntheticItalic
(), | 33 fontDescription.isSyntheticBold(), fontDescription.isSyntheticItalic
(), |
34 fontDescription.orientation(), fontDescription.widthVariant()), Cust
omFontData::create()); | 34 fontDescription.orientation()), CustomFontData::create()); |
35 } | 35 } |
36 | 36 |
37 } // namespace blink | 37 } // namespace blink |
OLD | NEW |