summaryrefslogtreecommitdiffstats
path: root/webkit/glue/dom_serializer_unittest.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 18:31:38 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 18:31:38 +0000
commit06f671d8de053dfd09a791f22865369f5daf092a (patch)
tree035f5311c4a9ad43b57b55ae8f8fc6c55b8fb7ea /webkit/glue/dom_serializer_unittest.cc
parent831d29c2dfd23457aa54b9a4f73f030827500a65 (diff)
downloadchromium_src-06f671d8de053dfd09a791f22865369f5daf092a.zip
chromium_src-06f671d8de053dfd09a791f22865369f5daf092a.tar.gz
chromium_src-06f671d8de053dfd09a791f22865369f5daf092a.tar.bz2
Switch over to non-deprecated methods.
R=jhawkins BUG=none TEST=none Review URL: http://codereview.chromium.org/1985008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46718 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/dom_serializer_unittest.cc')
-rw-r--r--webkit/glue/dom_serializer_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/glue/dom_serializer_unittest.cc b/webkit/glue/dom_serializer_unittest.cc
index d690d68..ce5be4d 100644
--- a/webkit/glue/dom_serializer_unittest.cc
+++ b/webkit/glue/dom_serializer_unittest.cc
@@ -65,7 +65,7 @@ WebFrame* FindSubFrameByURL(WebView* web_view, const GURL& url) {
if (!node.isElementNode())
continue;
// Check frame tag and iframe tag
- WebElement element = node.toElement<WebElement>();
+ WebElement element = node.to<WebElement>();
if (!element.hasTagName("frame") && !element.hasTagName("iframe"))
continue;
WebFrame* sub_frame = WebFrame::fromFrameOwnerElement(element);
@@ -233,7 +233,7 @@ bool HasDocType(const WebDocument& doc) {
bool IsMetaElement(const WebNode& node, std::string& charset_info) {
if (!node.isElementNode())
return false;
- const WebElement meta = node.toConstElement<WebElement>();
+ const WebElement meta = node.toConst<WebElement>();
if (!meta.hasTagName("meta"))
return false;
charset_info.erase(0, charset_info.length());
@@ -703,7 +703,7 @@ TEST_F(DomSerializerTests, SerializeHTMLDOMWithBaseTag) {
node = all.nextItem()) {
if (!node.isElementNode())
continue;
- WebElement element = node.toElement<WebElement>();
+ WebElement element = node.to<WebElement>();
if (element.hasTagName("base")) {
original_base_tag_count++;
} else {
@@ -752,7 +752,7 @@ TEST_F(DomSerializerTests, SerializeHTMLDOMWithBaseTag) {
node = all.nextItem()) {
if (!node.isElementNode())
continue;
- WebElement element = node.toElement<WebElement>();
+ WebElement element = node.to<WebElement>();
if (element.hasTagName("base")) {
new_base_tag_count++;
} else {