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

Unified Diff: third_party/WebKit/Source/core/html/ListedElement.h

Issue 2546063002: Rename FormAssociatedElement to ListedElement (Closed)
Patch Set: Suggested changes made Created 4 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: third_party/WebKit/Source/core/html/ListedElement.h
diff --git a/third_party/WebKit/Source/core/html/FormAssociatedElement.h b/third_party/WebKit/Source/core/html/ListedElement.h
similarity index 87%
rename from third_party/WebKit/Source/core/html/FormAssociatedElement.h
rename to third_party/WebKit/Source/core/html/ListedElement.h
index ddc6ebe9621f8909ba169476adbc31ca4bf88aae..cda9257a7a5280c2b7c263c07b83c1781234039a 100644
--- a/third_party/WebKit/Source/core/html/FormAssociatedElement.h
+++ b/third_party/WebKit/Source/core/html/ListedElement.h
@@ -22,8 +22,8 @@
*
*/
-#ifndef FormAssociatedElement_h
-#define FormAssociatedElement_h
+#ifndef ListedElement_h
+#define ListedElement_h
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
@@ -40,9 +40,10 @@ class HTMLFormElement;
class Node;
class ValidityState;
-class CORE_EXPORT FormAssociatedElement : public GarbageCollectedMixin {
+// https://html.spec.whatwg.org/multipage/forms.html#category-listed
+class CORE_EXPORT ListedElement : public GarbageCollectedMixin {
public:
- virtual ~FormAssociatedElement();
+ virtual ~ListedElement();
static HTMLFormElement* findAssociatedForm(const HTMLElement*);
HTMLFormElement* form() const { return m_form.get(); }
@@ -87,12 +88,12 @@ class CORE_EXPORT FormAssociatedElement : public GarbageCollectedMixin {
void formAttributeTargetChanged();
- typedef HeapVector<Member<FormAssociatedElement>> List;
+ typedef HeapVector<Member<ListedElement>> List;
DECLARE_VIRTUAL_TRACE();
protected:
- FormAssociatedElement();
+ ListedElement();
void insertedInto(ContainerNode*);
void removedFrom(ContainerNode*);
@@ -124,11 +125,11 @@ class CORE_EXPORT FormAssociatedElement : public GarbageCollectedMixin {
bool m_formWasSetByParser;
};
-CORE_EXPORT HTMLElement* toHTMLElement(FormAssociatedElement*);
-CORE_EXPORT HTMLElement& toHTMLElement(FormAssociatedElement&);
-CORE_EXPORT const HTMLElement* toHTMLElement(const FormAssociatedElement*);
-CORE_EXPORT const HTMLElement& toHTMLElement(const FormAssociatedElement&);
+CORE_EXPORT HTMLElement* toHTMLElement(ListedElement*);
+CORE_EXPORT HTMLElement& toHTMLElement(ListedElement&);
+CORE_EXPORT const HTMLElement* toHTMLElement(const ListedElement*);
+CORE_EXPORT const HTMLElement& toHTMLElement(const ListedElement&);
} // namespace blink
-#endif // FormAssociatedElement_h
+#endif // ListedElement_h
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLObjectElement.cpp ('k') | third_party/WebKit/Source/core/html/ListedElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698