Switch over to non-deprecated WebKit APIs and delete client methods that are no
longer called by WebKit.
R=jhawkins
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1995002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46508 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 33238d6..da1bea90 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -2000,7 +2000,7 @@
autofill_query_node_ = node;
const WebFormControlElement& element =
- node.toConstElement<WebFormControlElement>();
+ node.toConst<WebFormControlElement>();
webkit_glue::FormField field;
FormManager::WebFormControlElementToFormField(element, true, &field);
@@ -2028,7 +2028,7 @@
autofill_query_id_ = query_counter++;
webkit_glue::FormData form;
- const WebInputElement element = node.toConstElement<WebInputElement>();
+ const WebInputElement element = node.toConst<WebInputElement>();
if (!form_manager_.FindFormWithFormControlElement(
element, FormManager::REQUIRE_NONE, &form))
return;
@@ -3307,8 +3307,8 @@
}
webkit_glue::WebPluginDelegate* RenderView::GetDelegateForPluginDocument() {
- WebPlugin* plugin = webview()->mainFrame()->document().
- toElement<WebPluginDocument>().plugin();
+ WebPlugin* plugin =
+ webview()->mainFrame()->document().to<WebPluginDocument>().plugin();
return static_cast<webkit_glue::WebPluginImpl*>(plugin)->delegate();
}