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

Unified Diff: Source/WebKit/chromium/src/WebViewImpl.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/WebViewImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebViewImpl.cpp b/Source/WebKit/chromium/src/WebViewImpl.cpp
index 11a5d204a80978babd8abb6ba58f37e63fc41615..6ae7ab6ac6299747505643c659828960d2790e20 100644
--- a/Source/WebKit/chromium/src/WebViewImpl.cpp
+++ b/Source/WebKit/chromium/src/WebViewImpl.cpp
@@ -2217,7 +2217,7 @@ WebTextInputType WebViewImpl::textInputType()
return WebTextInputTypeNone;
if (node->hasTagName(HTMLNames::inputTag)) {
- HTMLInputElement* input = static_cast<HTMLInputElement*>(node);
+ HTMLInputElement* input = toHTMLInputElement(node);
if (input->isDisabledOrReadOnly())
return WebTextInputTypeNone;
« no previous file with comments | « Source/WebKit/chromium/src/WebSearchableFormData.cpp ('k') | Source/core/accessibility/AccessibilityMediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698