| Index: third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp b/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp
|
| index 80ab7182fa17877e15a4ff44ae72423604c8a43c..dfd6c4b14f9beca73d0b9d848b1864153802fbd6 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp
|
| @@ -44,8 +44,9 @@
|
|
|
| namespace blink {
|
|
|
| -FontCustomPlatformData::FontCustomPlatformData(sk_sp<SkTypeface> typeface)
|
| - : m_typeface(typeface) {}
|
| +FontCustomPlatformData::FontCustomPlatformData(sk_sp<SkTypeface> typeface,
|
| + size_t dataSize)
|
| + : m_typeface(typeface), m_dataSize(dataSize) {}
|
|
|
| FontCustomPlatformData::~FontCustomPlatformData() {}
|
|
|
| @@ -69,7 +70,8 @@ std::unique_ptr<FontCustomPlatformData> FontCustomPlatformData::create(
|
| otsParseMessage = decoder.getErrorString();
|
| return nullptr;
|
| }
|
| - return wrapUnique(new FontCustomPlatformData(std::move(typeface)));
|
| + return wrapUnique(
|
| + new FontCustomPlatformData(std::move(typeface), decoder.decodedSize()));
|
| }
|
|
|
| bool FontCustomPlatformData::supportsFormat(const String& format) {
|
|
|