Avoid unnecessary initial function call(setVisibleContentRect)
authorChanghyup Jwa <ch.jwa@samsung.com>
Sun, 4 Aug 2013 23:55:51 +0000 (08:55 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 5 Aug 2013 05:06:31 +0000 (05:06 +0000)
[Title] Avoid unnecessary initial function call(setVisibleContentRect)
[Issue#] SE-45071
[Problem] JS window.innerHeight sometimes returns incorrect value
[Cause] There was unnecessary and incorrect function call before page rendering
[Solution] Remove this function call before page rendering

Change-Id: I780ee6e58696843b75d15ecde8c8d8eb96128a91

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

index daa5446..3b55cd7 100755 (executable)
@@ -407,7 +407,7 @@ void PageClientImpl::didChangeViewportProperties(const WebCore::ViewportAttribut
     // Initially, m_scaleFactor is not decided yet.
     // So, we should update visible content rect at here.
     if (!m_scaleFactor) {
-        setVisibleContentRect(m_visibleContentRect, m_viewportConstraints.initialScale);
+        m_scaleFactor = m_viewportConstraints.initialScale;
         return;
     }