summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
diff options
context:
space:
mode:
authorShimeng (Simon) Wang <swang@google.com>2011-03-16 17:13:12 -0700
committerShimeng (Simon) Wang <swang@google.com>2011-03-16 17:13:12 -0700
commit918bdcc55fdfcb50735949b3ed397392a84e0393 (patch)
tree38bd730f9b9fa1ca7914e5e82dd7888bc8fb2250 /WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
parentab60a5124c80ef3bbbe80a8ad714f07457d29f98 (diff)
downloadexternal_webkit-918bdcc55fdfcb50735949b3ed397392a84e0393.zip
external_webkit-918bdcc55fdfcb50735949b3ed397392a84e0393.tar.gz
external_webkit-918bdcc55fdfcb50735949b3ed397392a84e0393.tar.bz2
Fix page jump after clicking links in nytimes.com
This reverts parts of change in https://android-git.corp.google.com/g/#change,96777 issue: 4024447 Change-Id: I29b5de1f97ed9d7cd70786cdcfeb91b53563e66e
Diffstat (limited to 'WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
index ca28932..013972a 100644
--- a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
@@ -90,6 +90,8 @@ void ChromeClientAndroid::attachRootGraphicsLayer(WebCore::Frame*, WebCore::Grap
{
// frame is not used in Android as we should only get root graphics layer for the main frame
m_rootGraphicsLayer = layer;
+ if (!layer)
+ return;
scheduleCompositingLayerSync();
}