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

Unified Diff: Source/core/html/HTMLElement.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/HTMLElement.h
diff --git a/Source/core/html/HTMLElement.h b/Source/core/html/HTMLElement.h
index 90c2e4e99cc5236f736cb869480970dbcfdc1a98..60dd90477db871a82045febbc9b38c09a7452f36 100644
--- a/Source/core/html/HTMLElement.h
+++ b/Source/core/html/HTMLElement.h
@@ -78,7 +78,7 @@ public:
virtual bool rendererIsNeeded(const RenderStyle&);
virtual RenderObject* createRenderer(RenderStyle*);
- HTMLFormElement* formOwner() const { return virtualForm(); }
+ HTMLFormElement* formOwner() const;
HTMLFormElement* findFormAncestor() const;
@@ -90,6 +90,8 @@ public:
virtual bool isLabelable() const { return false; }
// http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#interactive-content
virtual bool isInteractiveContent() const;
+ // http://www.whatwg.org/specs/web-apps/current-work/#form-associated-element
+ virtual bool isFormAssociatedElement() const { return false; }
virtual void defaultEventHandler(Event*) OVERRIDE;
protected:

Powered by Google App Engine
This is Rietveld 408576698