Changeset 195429 in webkit


Ignore:
Timestamp:
Jan 21, 2016 4:47:00 PM (8 years ago)
Author:
dino@apple.com
Message:

Move _allowsDoubleTapGestures implementation out of category
https://bugs.webkit.org/show_bug.cgi?id=153329
<rdar://problem/24289768>

Reviewed by Simon Fraser.

We were generating a linker warning because the implementation
was located inside the WKPrivate category.

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _allowsDoubleTapGestures]): Move this out of
the category.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r195424 r195429  
     12016-01-21  Dean Jackson  <dino@apple.com>
     2
     3        Move _allowsDoubleTapGestures implementation out of category
     4        https://bugs.webkit.org/show_bug.cgi?id=153329
     5        <rdar://problem/24289768>
     6
     7        Reviewed by Simon Fraser.
     8
     9        We were generating a linker warning because the implementation
     10        was located inside the WKPrivate category.
     11
     12        * UIProcess/API/Cocoa/WKWebView.mm:
     13        (-[WKWebView _allowsDoubleTapGestures]): Move this out of
     14        the category.
     15
    1162016-01-21  Dean Jackson  <dino@apple.com>
    217
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r195424 r195429  
    15851585    [super setBackgroundColor:backgroundColor];
    15861586    [_contentView setBackgroundColor:backgroundColor];
     1587}
     1588
     1589- (BOOL)_allowsDoubleTapGestures
     1590{
     1591    if (_fastClickingIsDisabled)
     1592        return YES;
     1593
     1594    // If the page is not user scalable, we don't allow double tap gestures.
     1595    if (![_scrollView isZoomEnabled] || [_scrollView minimumZoomScale] >= [_scrollView maximumZoomScale])
     1596        return NO;
     1597
     1598    // For scalable viewports, only disable double tap gestures if the viewport width is device width.
     1599    if (_viewportMetaTagWidth != WebCore::ViewportArguments::ValueDeviceWidth)
     1600        return YES;
     1601
     1602    return !areEssentiallyEqualAsFloat(contentZoomScale(self), _initialScaleFactor);
    15871603}
    15881604
     
    40564072}
    40574073
    4058 - (BOOL)_allowsDoubleTapGestures
    4059 {
    4060     if (_fastClickingIsDisabled)
    4061         return YES;
    4062 
    4063     // If the page is not user scalable, we don't allow double tap gestures.
    4064     if (![_scrollView isZoomEnabled] || [_scrollView minimumZoomScale] >= [_scrollView maximumZoomScale])
    4065         return NO;
    4066 
    4067     // For scalable viewports, only disable double tap gestures if the viewport width is device width.
    4068     if (_viewportMetaTagWidth != WebCore::ViewportArguments::ValueDeviceWidth)
    4069         return YES;
    4070 
    4071     return !areEssentiallyEqualAsFloat(contentZoomScale(self), _initialScaleFactor);
    4072 }
    4073 
    40744074- (_WKWebViewPrintFormatter *)_webViewPrintFormatter
    40754075{
Note: See TracChangeset for help on using the changeset viewer.