summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/plugins/webview_plugin.cc8
-rw-r--r--webkit/glue/plugins/webview_plugin.h2
2 files changed, 8 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);
}
diff --git a/webkit/glue/plugins/webview_plugin.h b/webkit/glue/plugins/webview_plugin.h
index 95f32a5..ef85d77 100644
--- a/webkit/glue/plugins/webview_plugin.h
+++ b/webkit/glue/plugins/webview_plugin.h
@@ -60,6 +60,8 @@ class WebViewPlugin: public WebKit::WebPlugin, public WebKit::WebViewClient,
// this method on the actual plug-in.
void ReplayReceivedData(WebKit::WebPlugin* plugin);
+ void RestoreTitleText();
+
// WebPlugin methods:
virtual bool initialize(WebKit::WebPluginContainer*);
virtual void destroy();