Fix the build after r244975
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 May 2019 22:28:19 +0000 (22:28 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 May 2019 22:28:19 +0000 (22:28 +0000)
(https://bugs.webkit.org/show_bug.cgi?id=197474)

Actually make use of the Keyboard Event when building with USE(UIKIT_KEYBOARD_ADDITIONS)
and substitute -> for . since it's now passed by reference.

* WebProcess/WebCoreSupport/ios/WebEditorClientIOS.mm:
(WebKit::WebEditorClient::handleInputMethodKeydown):

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

Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebCoreSupport/ios/WebEditorClientIOS.mm

index a4000e7..8a7a5d1 100644 (file)
@@ -1,3 +1,14 @@
+2019-05-06  Daniel Bates  <dabates@apple.com>
+
+        Fix the build after r244975
+        (https://bugs.webkit.org/show_bug.cgi?id=197474)
+
+        Actually make use of the Keyboard Event when building with USE(UIKIT_KEYBOARD_ADDITIONS)
+        and substitute -> for . since it's now passed by reference.
+
+        * WebProcess/WebCoreSupport/ios/WebEditorClientIOS.mm:
+        (WebKit::WebEditorClient::handleInputMethodKeydown):
+
 2019-05-06  Jer Noble  <jer.noble@apple.com>
 
         Adopt AVStreamDataParser.audiovisualMIMETypes
index 74bdc18..8b7336d 100644 (file)
@@ -42,13 +42,14 @@ void WebEditorClient::handleKeyboardEvent(KeyboardEvent& event)
         event.setDefaultHandled();
 }
 
-void WebEditorClient::handleInputMethodKeydown(KeyboardEvent&)
+void WebEditorClient::handleInputMethodKeydown(KeyboardEvent& event)
 {
 #if USE(UIKIT_KEYBOARD_ADDITIONS)
-    if (event->handledByInputMethod())
-        event->setDefaultHandled();
+    if (event.handledByInputMethod())
+        event.setDefaultHandled();
 #else
     notImplemented();
+    UNUSED_PARAM(event);
 #endif
 }