webengine/osswebengine/WebKit/s60/webview/WebFrame.cpp
branchRCL_3
changeset 62 c711bdda59f4
parent 27 60c5402cb945
child 64 ac77f89b1d9e
equal deleted inserted replaced
59:1f3c3f2f5b0a 62:c711bdda59f4
   580 			}
   580 			}
   581         }
   581         }
   582 	}
   582 	}
   583 	
   583 	
   584     // check if we are close enough and calcualte with zoom factor. 
   584     // check if we are close enough and calcualte with zoom factor. 
   585     if (dist< (400/m_view->topView()->scalingFactor() * 100)) {
   585     if (result && dist< (400/m_view->topView()->scalingFactor() * 100)) {
   586         IntRect r = result->getRect();
   586         IntRect r = result->getRect();
   587         r.inflate(-2);
   587         r.inflate(-2);
   588         TPoint docPos(xInRect(r, pt.x()), yInRect(r, pt.y()));
   588         TPoint docPos(xInRect(r, pt.x()), yInRect(r, pt.y()));
   589         newPos = m_view->frameCoordsInViewCoords(docPos);
   589         newPos = m_view->frameCoordsInViewCoords(docPos);
   590         return result;        
   590         return result;