aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_renderer_pepper_pepper__flash__font__file__host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-chrome_renderer_pepper_pepper__flash__font__file__host.cc')
-rw-r--r--www/chromium/files/patch-chrome_renderer_pepper_pepper__flash__font__file__host.cc38
1 files changed, 38 insertions, 0 deletions
diff --git a/www/chromium/files/patch-chrome_renderer_pepper_pepper__flash__font__file__host.cc b/www/chromium/files/patch-chrome_renderer_pepper_pepper__flash__font__file__host.cc
new file mode 100644
index 000000000000..cb80bdab2845
--- /dev/null
+++ b/www/chromium/files/patch-chrome_renderer_pepper_pepper__flash__font__file__host.cc
@@ -0,0 +1,38 @@
+--- chrome/renderer/pepper/pepper_flash_font_file_host.cc.orig 2016-05-11 19:02:17 UTC
++++ chrome/renderer/pepper/pepper_flash_font_file_host.cc
+@@ -14,7 +14,7 @@
+ #include "ppapi/proxy/ppapi_messages.h"
+ #include "ppapi/proxy/serialized_structs.h"
+
+-#if defined(OS_LINUX) || defined(OS_OPENBSD)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ #include "content/public/common/child_process_sandbox_support_linux.h"
+ #elif defined(OS_WIN)
+ #include "third_party/skia/include/ports/SkFontMgr.h"
+@@ -27,7 +27,7 @@ PepperFlashFontFileHost::PepperFlashFont
+ const ppapi::proxy::SerializedFontDescription& description,
+ PP_PrivateFontCharset charset)
+ : ResourceHost(host->GetPpapiHost(), instance, resource) {
+-#if defined(OS_LINUX) || defined(OS_OPENBSD)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ fd_.reset(content::MatchFontWithFallback(
+ description.face,
+ description.weight >= PP_BROWSERFONT_TRUSTED_WEIGHT_BOLD,
+@@ -44,7 +44,7 @@ PepperFlashFontFileHost::PepperFlashFont
+ skia::RefPtr<SkFontMgr> font_mgr = skia::AdoptRef(SkFontMgr::RefDefault());
+ typeface_ = skia::AdoptRef(
+ font_mgr->matchFamilyStyle(description.face.c_str(), style));
+-#endif // defined(OS_LINUX) || defined(OS_OPENBSD)
++#endif // defined(OS_LINUX) || defined(OS_BSD)
+ }
+
+ PepperFlashFontFileHost::~PepperFlashFontFileHost() {}
+@@ -63,7 +63,7 @@ bool PepperFlashFontFileHost::GetFontDat
+ void* buffer,
+ size_t* length) {
+ bool result = false;
+-#if defined(OS_LINUX) || defined(OS_OPENBSD)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ int fd = fd_.get();
+ if (fd != -1)
+ result = content::GetFontTable(fd, table, 0 /* offset */,