diff options
Diffstat (limited to 'WebKit')
| -rw-r--r-- | WebKit/android/jni/WebViewCore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index 1f56582..0eca9bc 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -1115,7 +1115,8 @@ void WebViewCore::setSizeScreenWidthAndScale(int width, int height, if ((anchorX | anchorY) == 0) scrollBy(newBounds.x() - bounds.x(), newBounds.y() - bounds.y(), false); - else if (bounds != newBounds) { + else if ((orsw && osh && bounds.width() && bounds.height()) + && (bounds != newBounds)) { WebCore::FrameView* view = m_mainFrame->view(); // force left align if width is not changed while height changed. // the anchorPoint is probably at some white space in the node |
