$OpenBSD: patch-third_party_WebKit_Source_platform_fonts_FontPlatformData_cpp,v 1.9 2018/03/12 13:48:34 robert Exp $

Index: third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
--- third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp.orig
+++ third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
@@ -94,7 +94,7 @@ FontPlatformData::FontPlatformData(const FontPlatformD
       synthetic_italic_(source.synthetic_italic_),
       avoid_embedded_bitmaps_(source.avoid_embedded_bitmaps_),
       orientation_(source.orientation_),
-#if defined(OS_LINUX) || defined(OS_ANDROID)
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
       style_(source.style_),
 #endif
       harf_buzz_face_(nullptr),
@@ -116,7 +116,7 @@ FontPlatformData::FontPlatformData(const FontPlatformD
       synthetic_italic_(src.synthetic_italic_),
       avoid_embedded_bitmaps_(false),
       orientation_(src.orientation_),
-#if defined(OS_LINUX) || defined(OS_ANDROID)
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
       style_(FontRenderStyle::QuerySystem(
           family_,
           text_size_,
@@ -149,7 +149,7 @@ FontPlatformData::FontPlatformData(const PaintTypeface
       synthetic_italic_(synthetic_italic),
       avoid_embedded_bitmaps_(false),
       orientation_(orientation),
-#if defined(OS_LINUX) || defined(OS_ANDROID)
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
       style_(FontRenderStyle::QuerySystem(
           family_,
           text_size_,
@@ -196,7 +196,7 @@ const FontPlatformData& FontPlatformData::operator=(
   avoid_embedded_bitmaps_ = other.avoid_embedded_bitmaps_;
   harf_buzz_face_ = nullptr;
   orientation_ = other.orientation_;
-#if defined(OS_LINUX) || defined(OS_ANDROID)
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
   style_ = other.style_;
 #endif
 
@@ -221,7 +221,7 @@ bool FontPlatformData::operator==(const FontPlatformDa
          synthetic_bold_ == a.synthetic_bold_ &&
          synthetic_italic_ == a.synthetic_italic_ &&
          avoid_embedded_bitmaps_ == a.avoid_embedded_bitmaps_
-#if defined(OS_LINUX) || defined(OS_ANDROID)
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
          && style_ == a.style_
 #endif
          && orientation_ == a.orientation_;
