| Index: Source/core/html/HTMLElement.cpp
|
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
|
| index c6115081340bd23f6d8d2fba5c9d51ffbf559a04..761e62f11ad6d8221fdebe33e6563490645f9f4f 100644
|
| --- a/Source/core/html/HTMLElement.cpp
|
| +++ b/Source/core/html/HTMLElement.cpp
|
| @@ -742,6 +742,14 @@ RenderObject* HTMLElement::createRenderer(RenderStyle* style)
|
| return RenderObject::createObject(this, style);
|
| }
|
|
|
| +HTMLFormElement* HTMLElement::formOwner() const
|
| +{
|
| + if (!isFormAssociatedElement())
|
| + return 0;
|
| +
|
| + return virtualForm();
|
| +}
|
| +
|
| HTMLFormElement* HTMLElement::findFormAncestor() const
|
| {
|
| for (ContainerNode* ancestor = parentNode(); ancestor; ancestor = ancestor->parentNode()) {
|
|
|