Title: [175835] trunk/Source/WebKit2
Revision
175835
Author
bda...@apple.com
Date
2014-11-10 15:55:56 -0800 (Mon, 10 Nov 2014)

Log Message

Whitespace action menus aren't working properly
https://bugs.webkit.org/show_bug.cgi?id=138585
-and corresponding-
rdar://problem/18933586

Reviewed by Tim Horton.

Treat the whitespace menu as a text menu.
* UIProcess/mac/WKActionMenuController.mm:
(-[WKActionMenuController isMenuForTextContent]):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (175834 => 175835)


--- trunk/Source/WebKit2/ChangeLog	2014-11-10 23:23:49 UTC (rev 175834)
+++ trunk/Source/WebKit2/ChangeLog	2014-11-10 23:55:56 UTC (rev 175835)
@@ -1,3 +1,16 @@
+2014-11-10  Beth Dakin  <bda...@apple.com>
+
+        Whitespace action menus aren't working properly
+        https://bugs.webkit.org/show_bug.cgi?id=138585
+        -and corresponding-
+        rdar://problem/18933586
+
+        Reviewed by Tim Horton.
+
+        Treat the whitespace menu as a text menu.
+        * UIProcess/mac/WKActionMenuController.mm:
+        (-[WKActionMenuController isMenuForTextContent]):
+
 2014-11-10  Simon Fraser  <simon.fra...@apple.com>
 
         [iOS WK2] Scroll deceleration rate is wrong

Modified: trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm (175834 => 175835)


--- trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm	2014-11-10 23:23:49 UTC (rev 175834)
+++ trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm	2014-11-10 23:55:56 UTC (rev 175835)
@@ -186,7 +186,7 @@
 
 - (BOOL)isMenuForTextContent
 {
-    return _type == kWKActionMenuReadOnlyText || _type == kWKActionMenuEditableText || _type == kWKActionMenuEditableTextWithSuggestions;
+    return _type == kWKActionMenuReadOnlyText || _type == kWKActionMenuEditableText || _type == kWKActionMenuEditableTextWithSuggestions || _type == kWKActionMenuWhitespaceInEditableArea;
 }
 
 - (void)willOpenMenu:(NSMenu *)menu withEvent:(NSEvent *)event
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to