Commit e0741c6b authored by charles.wei@torchmobile.com.cn's avatar charles.wei@torchmobile.com.cn
Browse files

[BlackBerry] Context menu doesn't showup anymore after rebase.

https://bugs.webkit.org/show_bug.cgi?id=113570

Reviewed by George Staikos.

The upstreaming patch for bug: 103058, reverses the return value of
Node::dispatchMouseEvent() to be consistent with Node::dispatchEvent(),
so we should reverse our logic in webkit part that calls it also.

This only applys to master_41 which is a new rebase, don't apply it to master_40.
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::webContext):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 43622b80
......@@ -2274,7 +2274,7 @@ Platform::WebContext WebPagePrivate::webContext(TargetDetectionStrategy strategy
// which node we want, we can send it directly to the node and not do a hit test. The onContextMenu event doesn't require
// mouse positions so we just set the position at (0,0)
PlatformMouseEvent mouseEvent(IntPoint(), IntPoint(), PlatformEvent::MouseMoved, 0, NoButton, false, false, false, TouchScreen);
if (m_currentContextNode->dispatchMouseEvent(mouseEvent, eventNames().contextmenuEvent, 0)) {
if (!m_currentContextNode->dispatchMouseEvent(mouseEvent, eventNames().contextmenuEvent, 0)) {
context.setFlag(Platform::WebContext::IsOnContextMenuPrevented);
return context;
}
......
2013-03-29 Charles Wei <charles.wei@torchmobile.com.cn>
[BlackBerry] Context menu doesn't showup anymore after rebase.
https://bugs.webkit.org/show_bug.cgi?id=113570
Reviewed by George Staikos.
The upstreaming patch for bug: 103058, reverses the return value of
Node::dispatchMouseEvent() to be consistent with Node::dispatchEvent(),
so we should reverse our logic in webkit part that calls it also.
This only applys to master_41 which is a new rebase, don't apply it to master_40.
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::webContext):
2013-03-28 Iris Wu <shuwu@blackberry.com>
 
[BlackBerry] Don't cross editing boundary when touch hold selection expands
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment