From 665f6b756b74c2466e4785033392da36eaa80bd8 Mon Sep 17 00:00:00 2001 From: Changhyup Jwa Date: Mon, 5 Aug 2013 08:55:51 +0900 Subject: [PATCH] Avoid unnecessary initial function call(setVisibleContentRect) [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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp b/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp index daa5446..3b55cd7 100755 --- a/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp +++ b/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp @@ -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; } -- 2.7.4