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

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

Issue 17381010: Introduce toHTMLFormControlElement, and use it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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/core/editing/FrameSelection.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/HTMLFieldSetElement.cpp
diff --git a/Source/core/html/HTMLFieldSetElement.cpp b/Source/core/html/HTMLFieldSetElement.cpp
index d441041217c29d78515751eb4d0bf92de1af230c..0a77f073be2a5f626d230fe7a8a35a70f54ebff7 100644
--- a/Source/core/html/HTMLFieldSetElement.cpp
+++ b/Source/core/html/HTMLFieldSetElement.cpp
@@ -54,7 +54,7 @@ void HTMLFieldSetElement::invalidateDisabledStateUnder(Element* base)
{
for (Element* element = ElementTraversal::firstWithin(base); element; element = ElementTraversal::next(element, base)) {
if (element->isFormControlElement())
- static_cast<HTMLFormControlElement*>(element)->ancestorDisabledStateWasChanged();
+ toHTMLFormControlElement(element)->ancestorDisabledStateWasChanged();
}
}
@@ -123,7 +123,7 @@ void HTMLFieldSetElement::refreshElementsIfNeeded() const
if (!element->isFormControlElement())
continue;
- m_associatedElements.append(static_cast<HTMLFormControlElement*>(element));
+ m_associatedElements.append(toHTMLFormControlElement(element));
}
}
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698