Changeset 195429 in webkit
- Timestamp:
- Jan 21, 2016 4:47:00 PM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r195424 r195429 1 2016-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 1 16 2016-01-21 Dean Jackson <dino@apple.com> 2 17 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r195424 r195429 1585 1585 [super setBackgroundColor:backgroundColor]; 1586 1586 [_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); 1587 1603 } 1588 1604 … … 4056 4072 } 4057 4073 4058 - (BOOL)_allowsDoubleTapGestures4059 {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 4074 4074 - (_WKWebViewPrintFormatter *)_webViewPrintFormatter 4075 4075 {
Note: See TracChangeset
for help on using the changeset viewer.