webengine/osswebengine/WebKit/s60/webview/WebFrameView.cpp
branchRCL_3
changeset 44 800203832575
parent 42 a1a5d4e727e8
child 46 30342f40acbf
--- a/webengine/osswebengine/WebKit/s60/webview/WebFrameView.cpp	Wed Jun 09 10:52:50 2010 +0300
+++ b/webengine/osswebengine/WebKit/s60/webview/WebFrameView.cpp	Mon Jun 21 16:54:17 2010 +0300
@@ -81,8 +81,7 @@
     
     TRect vr(visibleRect());
     TRect rect(r);
-    if (isScaled() || m_frame->isFrameSet())
-        rect.Grow(1,1);             // eliminate rounding errors
+
     TRect frameRect(m_frameRect);
 
     rect.Move(-frameRect.iTl);
@@ -109,6 +108,10 @@
         
         gc.setClippingRect( clip );
 
+		//Converting To Doc and View co-ordinates calculation will loose 1 px 
+		//if the scalling is other than default level
+        if (isScaled() || m_frame->isFrameSet())
+               rect.Grow(2,2);             // eliminate rounding errors
         // draw frame content
         m_frame->paintRect(gc, rect);
         gc.cancelClipping();
@@ -287,6 +290,9 @@
 
 void WebFrameView::scrollTo(const TPoint& aPoint)
 {
+
+    m_topView->scrollStatus(ETrue);
+
     if (m_parent) {
         // tot:fixme frame scrolling when frame-flat is off
         if (m_frame->isIframe()) {
@@ -438,9 +444,9 @@
         Node* node = focusedFrame->document()->focusedNode();
 	 	if (node) {
             TRect rect = node->getRect().Rect();
-            TPoint viewpoint = kit(focusedFrame)->frameView()->frameCoordsInViewCoords(rect.iTl);
+            TPoint viewPoint = kit(focusedFrame)->frameView()->frameCoordsInViewCoords(rect.iTl);
             WebCursor* cursor = StaticObjectsContainer::instance()->webCursor();
-            cursor->updatePositionAndElemType(viewpoint);
+            cursor->setPosition(viewPoint);
 	 	}
 	 }
 }