32-bit build fix after r182554.
authorenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2015 18:30:47 +0000 (18:30 +0000)
committerenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2015 18:30:47 +0000 (18:30 +0000)
* UIProcess/API/mac/WKView.mm:
(-[WKView resignFirstResponder]):

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

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

index d086bc2..abafc43 100644 (file)
@@ -1,3 +1,10 @@
+2015-04-08  Enrica Casucci  <enrica@apple.com>
+
+        32-bit build fix after r182554.
+
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView resignFirstResponder]):
+
 2015-04-08  Beth Dakin  <bdakin@apple.com>
 
         Force events should not require preventDefault in order to fire
index 5a81911..16eb146 100644 (file)
@@ -474,6 +474,7 @@ struct WKViewInterpretKeyEventsParameters {
 
 - (BOOL)resignFirstResponder
 {
+#if WK_API_ENABLED
     // Predict the case where we are losing first responder status only to
     // gain it back again. We want resignFirstResponder to do nothing in that case.
     id nextResponder = [[self window] _newFirstResponderAfterResigning];
@@ -481,6 +482,7 @@ struct WKViewInterpretKeyEventsParameters {
         _data->_willBecomeFirstResponderAgain = YES;
         return YES;
     }
+#endif
 
     _data->_willBecomeFirstResponderAgain = NO;
     _data->_inResignFirstResponder = true;