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

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

Issue 715363005: Remove FontPlatformData::m_widthVariant. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/css/RemoteFontFaceSource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/RemoteFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698