Changeset 238133 in webkit


Ignore:
Timestamp:
Nov 13, 2018 9:16:02 AM (5 years ago)
Author:
achristensen@apple.com
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.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r238129 r238133  
     12018-11-13  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix internal builds after r238115
     4        https://bugs.webkit.org/show_bug.cgi?id=191441
     5
     6        * UIProcess/Cocoa/WKSafeBrowsingWarning.mm:
     7        (-[WKSafeBrowsingTextView intrinsicContentSize]):
     8        Some iOS-like operating systems don't have safe browsing.  Don't use symbols that don't exist on those systems.
     9
    1102018-11-13  Ali Juma  <ajuma@chromium.org>
    211
  • trunk/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm

    r238115 r238133  
    560560    [self.layoutManager ensureLayoutForTextContainer:self.textContainer];
    561561    return { NSViewNoIntrinsicMetric, [self.layoutManager usedRectForTextContainer:self.textContainer].size.height };
    562 #else
     562#elif HAVE(SAFE_BROWSING)
    563563    auto width = std::min<CGFloat>(maxWidth, [_warning frame].size.width) - 2 * marginSize;
    564564    constexpr auto noHeightConstraint = CGFLOAT_MAX;
    565565    return { width, [self sizeThatFits: { width, noHeightConstraint }].height };
     566#else
     567    return { 0, 0 };
    566568#endif
    567569}
Note: See TracChangeset for help on using the changeset viewer.