--- a/webengine/osswebengine/WebKit/s60/webview/WebFrame.cpp Thu Sep 24 12:53:48 2009 +0300
+++ b/webengine/osswebengine/WebKit/s60/webview/WebFrame.cpp Mon Oct 26 08:28:45 2009 +0200
@@ -347,8 +347,8 @@
WTF::Vector<WebFrame*> ch = childFrames();
WebFrame* frm = 0;
// Check the children of the frame only if this frame also contains pt_
- // If a child iframe is bigger than the parent, it should not be picked.
- if (m_view->rectInGlobalCoords().Contains(pt_)) {
+ // If a child iframe is bigger than the parent, it should not be picked.
+ if (m_view->isVisible() && m_view->rectInGlobalCoords().Contains(pt_)) {
Vector<WebFrame*>::iterator end = ch.end();
for (Vector<WebFrame*>::iterator itr = ch.begin(); itr != end; itr++) {
WebFrame* f = (*itr);