Title: [239076] trunk/Source/WebKit
Revision
239076
Author
[email protected]
Date
2018-12-11 10:45:27 -0800 (Tue, 11 Dec 2018)

Log Message

Fix an internal build failure after r239014
https://bugs.webkit.org/show_bug.cgi?id=192205

* UIProcess/Cocoa/WKSafeBrowsingWarning.mm:
(fontOfSize):
There's a system that doesn't have safe browsing or UIFontTextStyleLargeTitle.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (239075 => 239076)


--- trunk/Source/WebKit/ChangeLog	2018-12-11 18:12:21 UTC (rev 239075)
+++ trunk/Source/WebKit/ChangeLog	2018-12-11 18:45:27 UTC (rev 239076)
@@ -1,3 +1,12 @@
+2018-12-11  Alex Christensen  <[email protected]>
+
+        Fix an internal build failure after r239014
+        https://bugs.webkit.org/show_bug.cgi?id=192205
+
+        * UIProcess/Cocoa/WKSafeBrowsingWarning.mm:
+        (fontOfSize):
+        There's a system that doesn't have safe browsing or UIFontTextStyleLargeTitle.
+
 2018-12-11  Brian Burg  <[email protected]>
 
         SimulatedInputDispatcher::transitionInputSourceToState() can reuse a moved-from completion handler

Modified: trunk/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm (239075 => 239076)


--- trunk/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm	2018-12-11 18:12:21 UTC (rev 239075)
+++ trunk/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm	2018-12-11 18:45:27 UTC (rev 239076)
@@ -82,7 +82,7 @@
     case WarningTextSize::Body:
         return [NSFont systemFontOfSize:14];
     }
-#else
+#elif HAVE(SAFE_BROWSING)
     switch (size) {
     case WarningTextSize::Title:
         return [UIFont preferredFontForTextStyle:UIFontTextStyleLargeTitle];
@@ -89,6 +89,8 @@
     case WarningTextSize::Body:
         return [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
     }
+#else
+    return nil;
 #endif
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to