From 9b5a4abb0835d28669d8db5f31c118bba068a89e Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Wed, 17 Aug 2011 11:24:04 -0700 Subject: Fix Gmail blank page Gmail is updating the tilePages in different scale factor. One of the beginning scale factor happens to be the same as the initial value 1.0, then the code will consider the page is prepared which is not true, and we miss the necessary page update. Changing the initial value will make sure that we know the current page is not really prepared yet. And we can update accordingly. bug:5134126 Change-Id: Ieb4d01513fc4fbe9d996ab62ad5eb43bb5aace2e --- Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.cpp') diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp index 748c5e9..3c7375a 100644 --- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -65,8 +65,8 @@ using namespace android; GLWebViewState::GLWebViewState(android::Mutex* buttonMutex) : m_scaleRequestState(kNoScaleRequest) - , m_currentScale(1) - , m_futureScale(1) + , m_currentScale(-1) + , m_futureScale(-1) , m_updateTime(-1) , m_transitionTime(-1) , m_baseLayer(0) -- cgit v1.1