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

Side by Side Diff: third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.cpp

Issue 2581083003: Initial OpenType Font Variations Support (Closed)
Patch Set: Fix makeUnique syntax Created 3 years, 12 months 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 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
21 bool BinaryDataFontFaceSource::isValid() const { 21 bool BinaryDataFontFaceSource::isValid() const {
22 return m_customPlatformData.get(); 22 return m_customPlatformData.get();
23 } 23 }
24 24
25 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData( 25 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData(
26 const FontDescription& fontDescription) { 26 const FontDescription& fontDescription) {
27 return SimpleFontData::create( 27 return SimpleFontData::create(
28 m_customPlatformData->fontPlatformData( 28 m_customPlatformData->fontPlatformData(
29 fontDescription.effectiveFontSize(), 29 fontDescription.effectiveFontSize(),
30 fontDescription.isSyntheticBold(), 30 fontDescription.isSyntheticBold(),
31 fontDescription.isSyntheticItalic(), fontDescription.orientation()), 31 fontDescription.isSyntheticItalic(), fontDescription.orientation(),
32 fontDescription.variationSettings()),
32 CustomFontData::create()); 33 CustomFontData::create());
33 } 34 }
34 35
35 } // namespace blink 36 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698