Duplicate validateUserInterfaceItem in WKWebView
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 01:42:17 +0000 (01:42 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 01:42:17 +0000 (01:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150873

Reviewed by Anders Carlsson.

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView changeFont:]):
(-[WKWebView startSpeaking:]):
(-[WKWebView validateUserInterfaceItem:]):
(-[WKWebView goBack:]):

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

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

index 451ca15..897f31f 100644 (file)
@@ -1,3 +1,16 @@
+2015-11-03  Tim Horton  <timothy_horton@apple.com>
+
+        Duplicate validateUserInterfaceItem in WKWebView
+        https://bugs.webkit.org/show_bug.cgi?id=150873
+
+        Reviewed by Anders Carlsson.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView changeFont:]):
+        (-[WKWebView startSpeaking:]):
+        (-[WKWebView validateUserInterfaceItem:]):
+        (-[WKWebView goBack:]):
+
 2015-11-03  Geoffrey Garen  <ggaren@apple.com>
 
         Provide a way to turn off const in WebKit2.
index b4f5762..0f757d6 100644 (file)
@@ -2061,11 +2061,6 @@ WEBCORE_COMMAND(yankAndSelect)
     _impl->changeFontFromFontPanel();
 }
 
-- (BOOL)validateUserInterfaceItem:(id <NSValidatedUserInterfaceItem>)item
-{
-    return _impl->validateUserInterfaceItem(item);
-}
-
 - (IBAction)startSpeaking:(id)sender
 {
     _impl->startSpeaking();
@@ -4073,7 +4068,7 @@ static inline WebKit::FindOptions toFindOptions(_WKFindOptions wkFindOptions)
         return YES;
     }
 
-    return NO;
+    return _impl->validateUserInterfaceItem(item);
 }
 
 - (IBAction)goBack:(id)sender