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

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

Issue 106423005: Only 'form associated' elements have a potential form owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use 'error' instead of 'click' events when testing form ownership Created 7 years 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/HTMLFormControlElement.h ('k') | Source/core/html/HTMLImageElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormControlElement.cpp
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp
index 4e361a6f200ddd4689c69973003bc5fa8437299f..4c68907eaf4d994dd4f341fe69ce0400450f88f2 100644
--- a/Source/core/html/HTMLFormControlElement.cpp
+++ b/Source/core/html/HTMLFormControlElement.cpp
@@ -297,6 +297,11 @@ void HTMLFormControlElement::dispatchFormControlInputEvent()
HTMLElement::dispatchInputEvent();
}
+HTMLFormElement* HTMLFormControlElement::formOwner() const
+{
+ return FormAssociatedElement::form();
+}
+
bool HTMLFormControlElement::isDisabledFormControl() const
{
if (m_disabled)
@@ -498,11 +503,6 @@ void HTMLFormControlElement::dispatchBlurEvent(Element* newFocusedElement)
hideVisibleValidationMessage();
}
-HTMLFormElement* HTMLFormControlElement::virtualForm() const
-{
- return FormAssociatedElement::form();
-}
-
bool HTMLFormControlElement::isSuccessfulSubmitButton() const
{
return canBeSuccessfulSubmitButton() && !isDisabledFormControl();
« no previous file with comments | « Source/core/html/HTMLFormControlElement.h ('k') | Source/core/html/HTMLImageElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698