OSDN Git Service

Fix regression blocking the page cycler
authorNicolas Roard <nicolasroard@google.com>
Thu, 24 Mar 2011 21:30:55 +0000 (14:30 -0700)
committerNicolas Roard <nicolasroard@google.com>
Thu, 24 Mar 2011 21:30:55 +0000 (14:30 -0700)
The bug caused a continuous redraw if you had a webview without content;
the Activity containing the webview would thus not be marked as idle.
The pagecycler is launching such an activity and wait until it's idle
to determinate that it's usable to loade urls...

bug:4172381
Change-Id: I6c838c5f6757186d01e8e476a8fc5101ea00ed15

WebCore/platform/graphics/android/TiledPage.cpp

index 099ed4d..21afe24 100644 (file)
@@ -299,7 +299,7 @@ bool TiledPage::ready(const SkIRect& tileBounds, float scale)
     if (!m_glWebViewState)
         return false;
 
-    if (!m_prepare)
+    if (!m_invalRegion.isEmpty() && !m_prepare)
         return false;
 
     if (m_scale != scale)