| 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 "core/css/BinaryDataFontFaceSource.h" | 5 #include "core/css/BinaryDataFontFaceSource.h" |
| 6 | 6 |
| 7 #include "platform/SharedBuffer.h" | 7 #include "platform/SharedBuffer.h" |
| 8 #include "platform/fonts/FontCustomPlatformData.h" | 8 #include "platform/fonts/FontCustomPlatformData.h" |
| 9 #include "platform/fonts/FontDescription.h" | 9 #include "platform/fonts/FontDescription.h" |
| 10 #include "platform/fonts/SimpleFontData.h" | 10 #include "platform/fonts/SimpleFontData.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 | 22 |
| 23 bool BinaryDataFontFaceSource::isValid() const | 23 bool BinaryDataFontFaceSource::isValid() const |
| 24 { | 24 { |
| 25 return m_customPlatformData.get(); | 25 return m_customPlatformData.get(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData(const FontDe
scription& fontDescription) | 28 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData(const FontDe
scription& fontDescription) |
| 29 { | 29 { |
| 30 return SimpleFontData::create( | 30 return SimpleFontData::create( |
| 31 m_customPlatformData->fontPlatformData(fontDescription.effectiveFontSize
(), | 31 m_customPlatformData->fontPlatformData( |
| 32 fontDescription.isSyntheticBold(), fontDescription.isSyntheticItalic
(), | 32 fontDescription.isSyntheticBold(), |
| 33 fontDescription.orientation()), CustomFontData::create()); | 33 fontDescription.isSyntheticItalic(), |
| 34 fontDescription.orientation()), |
| 35 fontDescription.effectiveFontSize(), |
| 36 CustomFontData::create()); |
| 34 } | 37 } |
| 35 | 38 |
| 36 } // namespace blink | 39 } // namespace blink |
| OLD | NEW |