Image is not coming properly after rotation
authordeepak <deepak.m1@samsung.com>
Wed, 3 Jul 2013 21:18:06 +0000 (02:48 +0530)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 5 Jul 2013 08:20:12 +0000 (08:20 +0000)
[Version]    RC3
[Title]      Image is not coming properly after rotation.
[BinType]    N/A
[Customer]   HQ
[Issue#]     N_SE-42989
[Problem]    Image is not coming properly after rotation
[Cause]      m_viewportFitsToContent is not considered for calculating scale.
[Solution]   check added for m_viewportFitsToContent.
[Team]       WebCoreSupport
[Developer]  deepak.m1@samsung.com
[Request]    N/A
[Horizontal expansion] N/A
[SCMRequest] NA

Change-Id: I87c97190809379281d937f8fb2e95f04dd215ace

Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp

index 5b7a5f9..f1c88ae 100755 (executable)
@@ -445,6 +445,8 @@ void PageClientImpl::didChangeViewportProperties(const WebCore::ViewportAttribut
     if (isRotated) {
         m_viewportAngle = angle;
         newScale = m_viewportConstraints.minimumScale * scaleRatioBeforeRotation;
+        if (m_viewportFitsToContent)
+            newScale = m_viewportConstraints.minimumScale;
         newScrollPosition.scale(newScale / m_scaleFactor, newScale / m_scaleFactor);
     }