summaryrefslogtreecommitdiffstats
path: root/webkit/glue/dom_operations.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 22:38:45 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 22:38:45 +0000
commitf40b49e10c5ad2a4aa360a20e467442fca29e315 (patch)
treecbd752f0db9dca4dfff4fd927832444d163a3ea2 /webkit/glue/dom_operations.cc
parent1f56867b48fe971a729df346ef3ac750de73969d (diff)
downloadchromium_src-f40b49e10c5ad2a4aa360a20e467442fca29e315.zip
chromium_src-f40b49e10c5ad2a4aa360a20e467442fca29e315.tar.gz
chromium_src-f40b49e10c5ad2a4aa360a20e467442fca29e315.tar.bz2
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
Diffstat (limited to 'webkit/glue/dom_operations.cc')
-rw-r--r--webkit/glue/dom_operations.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/webkit/glue/dom_operations.cc b/webkit/glue/dom_operations.cc
index 982bbba..d5058ea 100644
--- a/webkit/glue/dom_operations.cc
+++ b/webkit/glue/dom_operations.cc
@@ -138,7 +138,7 @@ void GetAllSavableResourceLinksForFrame(WebFrame* current_frame,
// We only save HTML resources.
if (!node.isElementNode())
continue;
- WebElement element = node.toElement<WebElement>();
+ WebElement element = node.to<WebElement>();
GetSavableResourceLinkForElement(element,
current_doc,
unique_check,
@@ -221,7 +221,7 @@ static bool FindFormInputElements(WebFormElement* fe,
// matching elements it can get at them through the FormElement*.
// Note: This assignment adds a reference to the InputElement.
result->input_elements[data.fields[j].name()] =
- temp_elements[0].toElement<WebInputElement>();
+ temp_elements[0].to<WebInputElement>();
}
return true;
}
@@ -256,7 +256,7 @@ static void FindFormElements(WebView* view,
for (size_t i = 0; i < forms.size(); ++i) {
WebFormElement fe = forms[i];
// Action URL must match.
- GURL full_action(f->completeURL(fe.action()));
+ GURL full_action(f->document().completeURL(fe.action()));
if (data.action != full_action.ReplaceComponents(rep))
continue;
@@ -298,7 +298,7 @@ void FillPasswordForm(WebView* view,
WebInputElement password_element =
form_elements->input_elements[data.basic_data.fields[1].name()];
- username_element.frame()->registerPasswordListener(
+ username_element.document().frame()->registerPasswordListener(
username_element,
new WebPasswordAutocompleteListenerImpl(
new WebInputElementDelegate(username_element),
@@ -313,7 +313,7 @@ WebString GetSubResourceLinkFromElement(const WebElement& element) {
element.hasTagName("script")) {
attribute_name = "src";
} else if (element.hasTagName("input")) {
- const WebInputElement input = element.toConstElement<WebInputElement>();
+ const WebInputElement input = element.toConst<WebInputElement>();
if (input.inputType() == WebInputElement::Image) {
attribute_name = "src";
}
@@ -494,7 +494,7 @@ void GetApplicationInfo(WebView* view, WebApplicationInfo* app_info) {
WebNode child = children.item(i);
if (!child.isElementNode())
continue;
- WebElement elem = child.toElement<WebElement>();
+ WebElement elem = child.to<WebElement>();
if (elem.hasTagName("link")) {
std::string rel = elem.getAttribute("rel").utf8();
@@ -577,7 +577,7 @@ bool ElementDoesAutoCompleteForElementWithId(WebView* view,
if (element.isNull() || !element.hasTagName("input"))
return false;
- WebInputElement input_element = element.toElement<WebInputElement>();
+ WebInputElement input_element = element.to<WebInputElement>();
return input_element.autoComplete();
}