Two WKWebView internal methods are implemented in a category
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Nov 2014 06:57:52 +0000 (06:57 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Nov 2014 06:57:52 +0000 (06:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=138728

Reviewed by Tim HOrton.

Moved the implementations from the category to the class.

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _ignoresNonWheelMouseEvents]):
(-[WKWebView _setIgnoresNonWheelMouseEvents:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176116 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

index 85ec154..57318a6 100644 (file)
@@ -1,3 +1,16 @@
+2014-11-13  Dan Bernstein  <mitz@apple.com>
+
+        Two WKWebView internal methods are implemented in a category
+        https://bugs.webkit.org/show_bug.cgi?id=138728
+
+        Reviewed by Tim HOrton.
+
+        Moved the implementations from the category to the class.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _ignoresNonWheelMouseEvents]):
+        (-[WKWebView _setIgnoresNonWheelMouseEvents:]):
+
 2014-11-13  Myles C. Maxfield  <mmaxfield@apple.com>
 
         Move FontMac and FontCacheMac off of WKSI
index ab58f51..1f3de6f 100644 (file)
@@ -1588,6 +1588,16 @@ static WebCore::FloatPoint constrainContentOffset(WebCore::FloatPoint contentOff
     [_wkView setMagnification:magnification centeredAtPoint:NSPointFromCGPoint(point)];
 }
 
+- (BOOL)_ignoresNonWheelMouseEvents
+{
+    return [_wkView _ignoresNonWheelMouseEvents];
+}
+
+- (void)_setIgnoresNonWheelMouseEvents:(BOOL)ignoresNonWheelMouseEvents
+{
+    [_wkView _setIgnoresNonWheelMouseEvents:ignoresNonWheelMouseEvents];
+}
+
 #endif
 
 @end
@@ -2481,16 +2491,6 @@ static inline WebKit::FindOptions toFindOptions(_WKFindOptions wkFindOptions)
     [_wkView _setTopContentInset:contentInset];
 }
 
-- (BOOL)_ignoresNonWheelMouseEvents
-{
-    return [_wkView _ignoresNonWheelMouseEvents];
-}
-
-- (void)_setIgnoresNonWheelMouseEvents:(BOOL)ignoresNonWheelMouseEvents
-{
-    [_wkView _setIgnoresNonWheelMouseEvents:ignoresNonWheelMouseEvents];
-}
-
 - (CGFloat)_topContentInset
 {
     return [_wkView _topContentInset];