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

Unified Diff: Source/core/html/FormAssociatedElement.cpp

Issue 23680013: Add const versions of some toHTMLFooElement(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/core/dom/Node.cpp ('k') | Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FormAssociatedElement.cpp
diff --git a/Source/core/html/FormAssociatedElement.cpp b/Source/core/html/FormAssociatedElement.cpp
index 4f68861f36378a2e00c03a31cc0a310188b5f100..e800826d4fb7ac47a934c4b5717ec454268ce4c8 100644
--- a/Source/core/html/FormAssociatedElement.cpp
+++ b/Source/core/html/FormAssociatedElement.cpp
@@ -277,11 +277,9 @@ bool FormAssociatedElement::isFormControlElementWithState() const
const HTMLElement* toHTMLElement(const FormAssociatedElement* associatedElement)
{
if (associatedElement->isFormControlElement())
- return static_cast<const HTMLFormControlElement*>(associatedElement);
+ return toHTMLFormControlElement(associatedElement);
// Assumes the element is an HTMLObjectElement
- const HTMLElement* element = static_cast<const HTMLObjectElement*>(associatedElement);
- ASSERT(element->hasTagName(objectTag));
- return element;
+ return toHTMLObjectElement(associatedElement);
}
HTMLElement* toHTMLElement(FormAssociatedElement* associatedElement)
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698