diff options
Diffstat (limited to 'webkit/glue/plugins/webview_plugin.cc')
-rw-r--r-- | webkit/glue/plugins/webview_plugin.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/glue/plugins/webview_plugin.cc b/webkit/glue/plugins/webview_plugin.cc index 31403fe..e1dc2c1 100644 --- a/webkit/glue/plugins/webview_plugin.cc +++ b/webkit/glue/plugins/webview_plugin.cc @@ -85,6 +85,12 @@ void WebViewPlugin::ReplayReceivedData(WebPlugin* plugin) { } } +void WebViewPlugin::RestoreTitleText() { + if (container_) + container_->element().setAttribute("title", old_title_); +} + + bool WebViewPlugin::initialize(WebPluginContainer* container) { container_ = container; if (container_) @@ -97,8 +103,6 @@ void WebViewPlugin::destroy() { delegate_->WillDestroyPlugin(); delegate_ = NULL; } - if (container_) - container_->element().setAttribute("title", old_title_); container_ = NULL; MessageLoop::current()->DeleteSoon(FROM_HERE, this); } |