diff options
author | Grace Kloba <klobag@google.com> | 2010-01-18 14:12:37 -0800 |
---|---|---|
committer | Grace Kloba <klobag@google.com> | 2010-01-18 14:12:37 -0800 |
commit | 336f436ca1f1b868aeabd408e8dbb5d1e893d701 (patch) | |
tree | f1b7bde331bd8fa6d486d4708dc4bfbcf866bc1e /WebCore | |
parent | b8a548263905542f52acfc60682693972f098d25 (diff) | |
download | external_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.cpp | 2 |
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 } |