webengine/osswebengine/WebKit/s60/webview/WebFrame.cpp
changeset 15 60c5402cb945
parent 10 a359256acfc6
child 36 c711bdda59f4
--- 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);