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

Unified Diff: Source/WebKit/chromium/src/WebInputElement.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
« no previous file with comments | « Source/WebKit/chromium/src/EditorClientImpl.cpp ('k') | Source/WebKit/chromium/src/WebPageSerializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebInputElement.cpp
diff --git a/Source/WebKit/chromium/src/WebInputElement.cpp b/Source/WebKit/chromium/src/WebInputElement.cpp
index 02647cb839e53ea00903510a31541a31415798d3..e1d90242ad7b8f36d8ace7632ab1a740e3befe92 100644
--- a/Source/WebKit/chromium/src/WebInputElement.cpp
+++ b/Source/WebKit/chromium/src/WebInputElement.cpp
@@ -277,7 +277,7 @@ WebInputElement& WebInputElement::operator=(const PassRefPtr<HTMLInputElement>&
WebInputElement::operator PassRefPtr<HTMLInputElement>() const
{
- return static_cast<HTMLInputElement*>(m_private.get());
+ return toHTMLInputElement(m_private.get());
}
WebInputElement* toWebInputElement(WebElement* webElement)
« no previous file with comments | « Source/WebKit/chromium/src/EditorClientImpl.cpp ('k') | Source/WebKit/chromium/src/WebPageSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698