| Index: Source/core/html/HTMLLegendElement.cpp
|
| diff --git a/Source/core/html/HTMLLegendElement.cpp b/Source/core/html/HTMLLegendElement.cpp
|
| index 0e711ef4161fe4cfaa14ac072b718be794c9ccd2..f15aed3010b2cf01b3d76f27aeb68c1612012245 100644
|
| --- a/Source/core/html/HTMLLegendElement.cpp
|
| +++ b/Source/core/html/HTMLLegendElement.cpp
|
| @@ -82,7 +82,7 @@ void HTMLLegendElement::accessKeyAction(bool sendMouseEvents)
|
| control->accessKeyAction(sendMouseEvents);
|
| }
|
|
|
| -HTMLFormElement* HTMLLegendElement::virtualForm() const
|
| +HTMLFormElement* HTMLLegendElement::form() const
|
| {
|
| // According to the specification, If the legend has a fieldset element as
|
| // its parent, then the form attribute must return the same value as the
|
| @@ -91,7 +91,7 @@ HTMLFormElement* HTMLLegendElement::virtualForm() const
|
| if (!fieldset || !fieldset->hasTagName(fieldsetTag))
|
| return 0;
|
|
|
| - return toHTMLFieldSetElement(fieldset)->form();
|
| + return toHTMLFieldSetElement(fieldset)->formOwner();
|
| }
|
|
|
| } // namespace
|
|
|