summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-06-20 09:43:56 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-06-20 09:43:57 -0700
commit903d2ec97b2ac9cf4f50fc3d7f9e503611bce470 (patch)
tree57e8ce6d88d46fa3794450e660a6ee7cc3cbf3c9
parent31874a9d49b110cd82de0efc5eab2c9cddcddde1 (diff)
parent5550319aaa0f9d0a05283a10971fc3240b9ed8eb (diff)
downloadexternal_webkit-903d2ec97b2ac9cf4f50fc3d7f9e503611bce470.zip
external_webkit-903d2ec97b2ac9cf4f50fc3d7f9e503611bce470.tar.gz
external_webkit-903d2ec97b2ac9cf4f50fc3d7f9e503611bce470.tar.bz2
Merge "Don't use deleted Node object in setSizeScreenWidthAndScale"
-rw-r--r--Source/WebKit/android/jni/WebViewCore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp
index 1e406b1..1b53a6e 100644
--- a/Source/WebKit/android/jni/WebViewCore.cpp
+++ b/Source/WebKit/android/jni/WebViewCore.cpp
@@ -1359,7 +1359,7 @@ void WebViewCore::setSizeScreenWidthAndScale(int width, int height,
m_mainFrame->view()->forceLayout();
// scroll to restore current screen center
- if (node) {
+ if (node && node->inDocument()) {
const WebCore::IntRect& newBounds = node->getRect();
DBG_NAV_LOGD("nb:(x=%d,y=%d,w=%d,"
"h=%d)", newBounds.x(), newBounds.y(),