| Index: third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp b/third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp
|
| index 06dc6cc8edadaaebf9851b6ed9c4cb3ddf9d2bc8..ff9ce7c2f3cf223c48a6c656d8f365f26496a3f3 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp
|
| @@ -34,6 +34,7 @@
|
| #include "platform/SharedBuffer.h"
|
| #include "platform/TraceEvent.h"
|
| #include "platform/fonts/FontCache.h"
|
| +#include "platform/graphics/skia/SkiaUtils.h"
|
| #include "public/platform/Platform.h"
|
| #include "third_party/harfbuzz-ng/src/hb.h"
|
| #include "third_party/ots/include/ots-memory-stream.h"
|
| @@ -191,7 +192,7 @@ PassRefPtr<SkTypeface> WebFontDecoder::decode(SharedBuffer* buffer)
|
| #if OS(WIN)
|
| RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->createFromStream(stream));
|
| #else
|
| - RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream));
|
| + RefPtr<SkTypeface> typeface = fromSkSp(SkTypeface::MakeFromStream(stream));
|
| #endif
|
| if (!typeface) {
|
| setErrorString("Not a valid font data");
|
|
|