Chromium Code Reviews

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

Issue 102263006: Implement HTMLOptionElement.form as required by spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/html/HTMLOptionElement.h ('k') | Source/core/html/HTMLOptionElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLOptionElement.cpp
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp
index d2f6453283800499cca837074cd100a48b8bc5e7..0240fb2871ea6c8a0ec960bf935dbee467317c9a 100644
--- a/Source/core/html/HTMLOptionElement.cpp
+++ b/Source/core/html/HTMLOptionElement.cpp
@@ -366,4 +366,13 @@ String HTMLOptionElement::collectOptionInnerText() const
return text.toString();
}
+HTMLFormElement* HTMLOptionElement::form() const
+{
+ HTMLSelectElement* selectElement = ownerSelectElement();
tkent 2013/12/10 23:09:08 nit: if (HTMLSelectElement* selectElement = owner
+ if (!selectElement)
+ return 0;
+
+ return selectElement->formOwner();
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/html/HTMLOptionElement.h ('k') | Source/core/html/HTMLOptionElement.idl » ('j') | no next file with comments »

Powered by Google App Engine