Title: [238133] trunk/Source/WebKit
Revision
238133
Author
[email protected]
Date
2018-11-13 09:16:02 -0800 (Tue, 13 Nov 2018)

Log Message

Fix internal builds after r238115
https://bugs.webkit.org/show_bug.cgi?id=191441

* UIProcess/Cocoa/WKSafeBrowsingWarning.mm:
(-[WKSafeBrowsingTextView intrinsicContentSize]):
Some iOS-like operating systems don't have safe browsing.  Don't use symbols that don't exist on those systems.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (238132 => 238133)


--- trunk/Source/WebKit/ChangeLog	2018-11-13 15:46:34 UTC (rev 238132)
+++ trunk/Source/WebKit/ChangeLog	2018-11-13 17:16:02 UTC (rev 238133)
@@ -1,3 +1,12 @@
+2018-11-13  Alex Christensen  <[email protected]>
+
+        Fix internal builds after r238115
+        https://bugs.webkit.org/show_bug.cgi?id=191441
+
+        * UIProcess/Cocoa/WKSafeBrowsingWarning.mm:
+        (-[WKSafeBrowsingTextView intrinsicContentSize]):
+        Some iOS-like operating systems don't have safe browsing.  Don't use symbols that don't exist on those systems.
+
 2018-11-13  Ali Juma  <[email protected]>
 
         Turn Intersection Observer on by default

Modified: trunk/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm (238132 => 238133)


--- trunk/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm	2018-11-13 15:46:34 UTC (rev 238132)
+++ trunk/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm	2018-11-13 17:16:02 UTC (rev 238133)
@@ -559,10 +559,12 @@
 #if PLATFORM(MAC)
     [self.layoutManager ensureLayoutForTextContainer:self.textContainer];
     return { NSViewNoIntrinsicMetric, [self.layoutManager usedRectForTextContainer:self.textContainer].size.height };
-#else
+#elif HAVE(SAFE_BROWSING)
     auto width = std::min<CGFloat>(maxWidth, [_warning frame].size.width) - 2 * marginSize;
     constexpr auto noHeightConstraint = CGFLOAT_MAX;
     return { width, [self sizeThatFits: { width, noHeightConstraint }].height };
+#else
+    return { 0, 0 };
 #endif
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to