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

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

Issue 23847003: Add toHTMLFieldSetElement and toHTMLLegendElement, and use them. (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/html/HTMLLegendElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLegendElement.cpp
diff --git a/Source/core/html/HTMLLegendElement.cpp b/Source/core/html/HTMLLegendElement.cpp
index 118238e33587714d6ceaa2260e47da26666dfcaf..e42467ab59117c8ccd216de62b4546f27165acf8 100644
--- a/Source/core/html/HTMLLegendElement.cpp
+++ b/Source/core/html/HTMLLegendElement.cpp
@@ -92,7 +92,7 @@ HTMLFormElement* HTMLLegendElement::virtualForm() const
if (!fieldset || !fieldset->hasTagName(fieldsetTag))
return 0;
- return static_cast<HTMLFieldSetElement*>(fieldset)->form();
+ return toHTMLFieldSetElement(fieldset)->form();
}
} // namespace
« no previous file with comments | « Source/core/html/HTMLLegendElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698