Fix iPhone 6 iOS simulator Build.
authorsaid@apple.com <said@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 May 2015 01:08:54 +0000 (01:08 +0000)
committersaid@apple.com <said@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 May 2015 01:08:54 +0000 (01:08 +0000)
following http://trac.webkit.org/changeset/183954.

Reviewed by Daniel Bates.

* WebView/WebHTMLView.mm:
(-[WebHTMLView pressureChangeWithEvent:]):

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

Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebHTMLView.mm

index 46d32fd..2c1d9e2 100644 (file)
@@ -1,3 +1,13 @@
+2015-05-07  Said Abou-Hallawa  <sabouhallawa@apple.com>
+
+        Fix iPhone 6 iOS simulator Build.
+        following http://trac.webkit.org/changeset/183954.
+
+        Reviewed by Daniel Bates.
+
+        * WebView/WebHTMLView.mm:
+        (-[WebHTMLView pressureChangeWithEvent:]):
+
 2015-05-07  Timothy Horton  <timothy_horton@apple.com>
 
         Occasional null deref in WebImmediateActionController
index d35fad5..fa4bd60 100644 (file)
@@ -4087,7 +4087,7 @@ static bool matchesExtensionOrEquivalent(NSString *filename, NSString *extension
 
 - (void)pressureChangeWithEvent:(NSEvent *)event
 {
-#if defined(__LP64__) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101003
+#if PLATFORM(MAC) && defined(__LP64__) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101003
     NSEvent *lastPressureEvent = [[self _webView] _pressureEvent];
     if (event.phase != NSEventPhaseChanged && event.phase != NSEventPhaseBegan && event.phase != NSEventPhaseEnded)
         return;