webengine/osswebengine/WebKit/s60/webview/WebFrame.cpp
changeset 15 60c5402cb945
parent 10 a359256acfc6
child 36 c711bdda59f4
equal deleted inserted replaced
11:c8a366e56285 15:60c5402cb945
   345 WebFrame* WebFrame::frameAtPoint(const TPoint& pt_)
   345 WebFrame* WebFrame::frameAtPoint(const TPoint& pt_)
   346 {
   346 {
   347     WTF::Vector<WebFrame*> ch = childFrames();
   347     WTF::Vector<WebFrame*> ch = childFrames();
   348     WebFrame* frm = 0;
   348     WebFrame* frm = 0;
   349     // Check the children of the frame only if this frame also contains pt_
   349     // Check the children of the frame only if this frame also contains pt_
   350     // If a child iframe is bigger than the parent, it should not be picked.
   350     // If a child iframe is bigger than the parent, it should not be picked.    
   351     if (m_view->rectInGlobalCoords().Contains(pt_)) {
   351     if (m_view->isVisible() && m_view->rectInGlobalCoords().Contains(pt_)) {
   352         Vector<WebFrame*>::iterator end = ch.end();
   352         Vector<WebFrame*>::iterator end = ch.end();
   353         for (Vector<WebFrame*>::iterator itr = ch.begin(); itr != end; itr++) {
   353         for (Vector<WebFrame*>::iterator itr = ch.begin(); itr != end; itr++) {
   354             WebFrame* f = (*itr);
   354             WebFrame* f = (*itr);
   355             if( (f = f->frameAtPoint(pt_ + m_view->toViewCoords(m_view->contentPos()))) != 0 )
   355             if( (f = f->frameAtPoint(pt_ + m_view->toViewCoords(m_view->contentPos()))) != 0 )
   356                 {
   356                 {