diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-08-17 11:24:04 -0700 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-08-17 11:42:46 -0700 |
commit | 9b5a4abb0835d28669d8db5f31c118bba068a89e (patch) | |
tree | 971e1aa9fc1168af9cbb2a092d4bcd45033bc883 /Source/WebCore/platform/graphics | |
parent | f9bc4199d5ebea7d85e1d74f76abd1b6329f20c2 (diff) | |
download | external_webkit-9b5a4abb0835d28669d8db5f31c118bba068a89e.zip external_webkit-9b5a4abb0835d28669d8db5f31c118bba068a89e.tar.gz external_webkit-9b5a4abb0835d28669d8db5f31c118bba068a89e.tar.bz2 |
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
Diffstat (limited to 'Source/WebCore/platform/graphics')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |