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

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

Issue 106423005: 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
Index: Source/core/html/HTMLLabelElement.h
diff --git a/Source/core/html/HTMLLabelElement.h b/Source/core/html/HTMLLabelElement.h
index 275b0777e5b8a9020e894cc886075fa6e7c34986..f1fc93de4146d1a26c93bb3c61da527c57615cdd 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;
sof 2013/12/10 17:26:05 The removal of this method would have belonged bet
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;
};
inline bool isHTMLLabelElement(const Node* node)

Powered by Google App Engine
This is Rietveld 408576698