Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: Source/WebKit/chromium/src/WebPageSerializer.cpp

Issue 16081007: Introduce toHTMLInputElement(Node*), and use it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/WebPageSerializer.cpp
diff --git a/Source/WebKit/chromium/src/WebPageSerializer.cpp b/Source/WebKit/chromium/src/WebPageSerializer.cpp
index ea4944d5a9f031a0407d054eeffb456ec70410c5..d9c7dbec0465a6241bf87ef5490dc04cba4ce885 100644
--- a/Source/WebKit/chromium/src/WebPageSerializer.cpp
+++ b/Source/WebKit/chromium/src/WebPageSerializer.cpp
@@ -67,8 +67,7 @@ KURL getSubResourceURLFromElement(Element* element)
if (element->hasTagName(HTMLNames::imgTag) || element->hasTagName(HTMLNames::scriptTag))
attributeName = &HTMLNames::srcAttr;
else if (element->hasTagName(HTMLNames::inputTag)) {
- HTMLInputElement* input = static_cast<HTMLInputElement*>(element);
- if (input->isImageButton())
+ if (toHTMLInputElement(element)->isImageButton())
attributeName = &HTMLNames::srcAttr;
} else if (element->hasTagName(HTMLNames::bodyTag)
|| element->hasTagName(HTMLNames::tableTag)
« no previous file with comments | « Source/WebKit/chromium/src/WebInputElement.cpp ('k') | Source/WebKit/chromium/src/WebSearchableFormData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698