| Index: Source/core/html/HTMLLegendElement.cpp
|
| diff --git a/Source/core/html/HTMLLegendElement.cpp b/Source/core/html/HTMLLegendElement.cpp
|
| index 15e8b1ddd9dedc7242b52d8e1926992ec5848b2d..4933e5eadc95fa9e25536c63fe98eb72eeb51577 100644
|
| --- a/Source/core/html/HTMLLegendElement.cpp
|
| +++ b/Source/core/html/HTMLLegendElement.cpp
|
| @@ -62,7 +62,7 @@ HTMLFormControlElement* HTMLLegendElement::associatedControl()
|
| Element* element = fieldset;
|
| while ((element = ElementTraversal::next(element, fieldset))) {
|
| if (element->isFormControlElement())
|
| - return static_cast<HTMLFormControlElement*>(element);
|
| + return toHTMLFormControlElement(element);
|
| }
|
|
|
| return 0;
|
|
|