diff options
-rw-r--r-- | ppapi/cpp/private/pdf.cc | 23 | ||||
-rw-r--r-- | ppapi/cpp/private/pdf.h | 6 |
2 files changed, 0 insertions, 29 deletions
diff --git a/ppapi/cpp/private/pdf.cc b/ppapi/cpp/private/pdf.cc index 7a3a877..ac5b941 100644 --- a/ppapi/cpp/private/pdf.cc +++ b/ppapi/cpp/private/pdf.cc @@ -50,29 +50,6 @@ ImageData PDF::GetResourceImage(const InstanceHandle& instance, // static PP_Resource PDF::GetFontFileWithFallback( const InstanceHandle& instance, - const PP_FontDescription_Dev* description, - PP_PrivateFontCharset charset) { - if (has_interface<PPB_PDF>()) { - PP_BrowserFont_Trusted_Description converted_desc; - converted_desc.face = description->face; - converted_desc.family = static_cast<PP_BrowserFont_Trusted_Family>( - description->family); - converted_desc.size = description->size; - converted_desc.weight = static_cast<PP_BrowserFont_Trusted_Weight>( - description->weight); - converted_desc.italic = description->italic; - converted_desc.small_caps = description->small_caps; - converted_desc.letter_spacing = description->letter_spacing; - converted_desc.word_spacing = description->word_spacing; - return get_interface<PPB_PDF>()->GetFontFileWithFallback( - instance.pp_instance(), &converted_desc, charset); - } - return 0; -} - -// static -PP_Resource PDF::GetFontFileWithFallback( - const InstanceHandle& instance, const PP_BrowserFont_Trusted_Description* description, PP_PrivateFontCharset charset) { if (has_interface<PPB_PDF>()) { diff --git a/ppapi/cpp/private/pdf.h b/ppapi/cpp/private/pdf.h index 327d681..586952c 100644 --- a/ppapi/cpp/private/pdf.h +++ b/ppapi/cpp/private/pdf.h @@ -26,12 +26,6 @@ class PDF { PP_ResourceString string_id); static ImageData GetResourceImage(const InstanceHandle& instance, PP_ResourceImage image_id); - // TODO(raymes): Remove this version when the PDF code is changed to use - // PP_BrowserFont_Trusted_Description. - static PP_Resource GetFontFileWithFallback( - const InstanceHandle& instance, - const PP_FontDescription_Dev* description, - PP_PrivateFontCharset charset); static PP_Resource GetFontFileWithFallback( const InstanceHandle& instance, const PP_BrowserFont_Trusted_Description* description, |