Fix the build.
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Dec 2014 00:22:25 +0000 (00:22 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Dec 2014 00:22:25 +0000 (00:22 +0000)
* UIProcess/API/mac/WKView.mm:
(-[WKView _setIgnoresNonWheelEvents:]):

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/mac/WKView.mm

index 2c7a914e82d4082779ec3f5084c60342eb489e33..6cda51434d4ebaa65fd3d77eaca8dd1b1bcc30f5 100644 (file)
@@ -1,3 +1,10 @@
+2014-12-19  Timothy Horton  <timothy_horton@apple.com>
+
+        Fix the build.
+
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView _setIgnoresNonWheelEvents:]):
+
 2014-12-19  Beth Dakin  <bdakin@apple.com>
 
         Preview popovers don't show an arrow for large links
 2014-12-19  Beth Dakin  <bdakin@apple.com>
 
         Preview popovers don't show an arrow for large links
index 10bbfec5a02943e678a61498c28a1997b4b2d75c..ae5fa8bd42c1357aaf23312d64dd30bfab8e8288 100644 (file)
@@ -4106,10 +4106,12 @@ static NSString *pathWithUniqueFilenameForPath(NSString *path)
     _data->_ignoresNonWheelEvents = ignoresNonWheelEvents;
     _data->_page->setShouldDispatchFakeMouseMoveEvents(!ignoresNonWheelEvents);
 
     _data->_ignoresNonWheelEvents = ignoresNonWheelEvents;
     _data->_page->setShouldDispatchFakeMouseMoveEvents(!ignoresNonWheelEvents);
 
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
     if (ignoresNonWheelEvents)
         [self removeGestureRecognizer:_data->_immediateActionGestureRecognizer.get()];
     else
         [self addGestureRecognizer:_data->_immediateActionGestureRecognizer.get()];
     if (ignoresNonWheelEvents)
         [self removeGestureRecognizer:_data->_immediateActionGestureRecognizer.get()];
     else
         [self addGestureRecognizer:_data->_immediateActionGestureRecognizer.get()];
+#endif
 }
 
 - (BOOL)_ignoresNonWheelEvents
 }
 
 - (BOOL)_ignoresNonWheelEvents