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

Unified Diff: Source/core/html/HTMLLabelElement.h

Issue 107183004: Only 'form associated' elements have a potential form owner. (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. 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/HTMLKeygenElement.idl ('k') | Source/core/html/HTMLLabelElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLabelElement.h
diff --git a/Source/core/html/HTMLLabelElement.h b/Source/core/html/HTMLLabelElement.h
index 275b0777e5b8a9020e894cc886075fa6e7c34986..3c712154ef8695707cf2c98f46a6b0986a0460bf 100644
--- a/Source/core/html/HTMLLabelElement.h
+++ b/Source/core/html/HTMLLabelElement.h
@@ -34,7 +34,6 @@ public:
static PassRefPtr<HTMLLabelElement> create(Document&);
LabelableElement* control();
- HTMLFormElement* form() const;
virtual bool willRespondToMouseClickEvents() OVERRIDE;
@@ -44,6 +43,7 @@ private:
virtual bool rendererIsFocusable() const OVERRIDE;
virtual bool isInteractiveContent() const OVERRIDE;
+ virtual bool isFormAssociatedElement() const OVERRIDE { return true; }
virtual void accessKeyAction(bool sendMouseEvents);
// Overridden to update the hover/active state of the corresponding control.
@@ -54,6 +54,8 @@ private:
virtual void defaultEventHandler(Event*);
virtual void focus(bool restorePreviousSelection, FocusDirection) OVERRIDE;
+
+ virtual HTMLFormElement* virtualForm() const OVERRIDE;
};
inline bool isHTMLLabelElement(const Node* node)
« no previous file with comments | « Source/core/html/HTMLKeygenElement.idl ('k') | Source/core/html/HTMLLabelElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698