diff options
| author | Derek Sollenberger <djsollen@google.com> | 2009-12-18 09:01:01 -0500 |
|---|---|---|
| committer | Derek Sollenberger <djsollen@google.com> | 2009-12-18 09:01:01 -0500 |
| commit | ab49f04690b4683b82ae4b08eb1814d22784472f (patch) | |
| tree | 2e260fc864cef8d0d1bc8929d802e562bde31233 /WebKit | |
| parent | 6c4eb7eb3d9d196ca2c9b1589aa2d6d9924114b6 (diff) | |
| download | external_webkit-ab49f04690b4683b82ae4b08eb1814d22784472f.zip external_webkit-ab49f04690b4683b82ae4b08eb1814d22784472f.tar.gz external_webkit-ab49f04690b4683b82ae4b08eb1814d22784472f.tar.bz2 | |
Fix to ensure plugin is notified even when the screen width does not change.
Diffstat (limited to 'WebKit')
| -rw-r--r-- | WebKit/android/jni/WebViewCore.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index 896d902..1c1384a 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -1156,14 +1156,14 @@ void WebViewCore::setSizeScreenWidthAndScale(int width, int height, r->setNeedsLayoutAndPrefWidthsRecalc(); m_mainFrame->view()->forceLayout(); // scroll to restore current screen center - if (!node) - return; - const WebCore::IntRect& newBounds = node->getRect(); - DBG_NAV_LOGD("nb:(x=%d,y=%d,w=%d," - "h=%d,ns=%d)", newBounds.x(), newBounds.y(), - newBounds.width(), newBounds.height()); - scrollBy(newBounds.x() - bounds.x(), newBounds.y() - bounds.y(), - false); + if (node) { + const WebCore::IntRect& newBounds = node->getRect(); + DBG_NAV_LOGD("nb:(x=%d,y=%d,w=%d," + "h=%d,ns=%d)", newBounds.x(), newBounds.y(), + newBounds.width(), newBounds.height()); + scrollBy(newBounds.x() - bounds.x(), newBounds.y() - bounds.y(), + false); + } } } |
