summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-01-18 14:12:37 -0800
committerGrace Kloba <klobag@google.com>2010-01-18 14:12:37 -0800
commit336f436ca1f1b868aeabd408e8dbb5d1e893d701 (patch)
treef1b7bde331bd8fa6d486d4708dc4bfbcf866bc1e /WebCore
parentb8a548263905542f52acfc60682693972f098d25 (diff)
downloadexternal_webkit-336f436ca1f1b868aeabd408e8dbb5d1e893d701.zip
external_webkit-336f436ca1f1b868aeabd408e8dbb5d1e893d701.tar.gz
external_webkit-336f436ca1f1b868aeabd408e8dbb5d1e893d701.tar.bz2
Don't call setNPWindowRect unless the plugin has
started. Otherwise the plugin won't get the rect later as it thinks it is not changed.
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/plugins/PluginView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/plugins/PluginView.cpp b/WebCore/plugins/PluginView.cpp
index 3f40000..afec228 100644
--- a/WebCore/plugins/PluginView.cpp
+++ b/WebCore/plugins/PluginView.cpp
@@ -127,7 +127,7 @@ void PluginView::setFrameRect(const IntRect& rect)
return;
#if defined(ANDROID_PLUGINS)
- if (rect != frameRect()) {
+ if (m_isStarted && (rect != frameRect())) {
Widget::setFrameRect(rect);
setNPWindowRect(rect); // only call when it changes
}