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

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

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/HTMLFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
index 127fa19138cea1169848e24bc7dca02a501f4ffd..dfcfd44c9a7b1c85765908ff78f9fa8abf713f65 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
@@ -66,7 +66,7 @@ HTMLFormControlElement::HTMLFormControlElement(const QualifiedName& tagName,
HTMLFormControlElement::~HTMLFormControlElement() {}
DEFINE_TRACE(HTMLFormControlElement) {
- FormAssociatedElement::trace(visitor);
+ ListedElement::trace(visitor);
LabelableElement::trace(visitor);
}
@@ -245,7 +245,7 @@ void HTMLFormControlElement::attachLayoutTree(const AttachContext& context) {
}
void HTMLFormControlElement::didMoveToNewDocument(Document& oldDocument) {
- FormAssociatedElement::didMoveToNewDocument(oldDocument);
+ ListedElement::didMoveToNewDocument(oldDocument);
HTMLElement::didMoveToNewDocument(oldDocument);
}
@@ -255,7 +255,7 @@ Node::InsertionNotificationRequest HTMLFormControlElement::insertedInto(
m_dataListAncestorState = Unknown;
setNeedsWillValidateCheck();
HTMLElement::insertedInto(insertionPoint);
- FormAssociatedElement::insertedInto(insertionPoint);
+ ListedElement::insertedInto(insertionPoint);
fieldSetAncestorsSetNeedsValidityCheck(insertionPoint);
// Trigger for elements outside of forms.
@@ -273,18 +273,18 @@ void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint) {
m_dataListAncestorState = Unknown;
setNeedsWillValidateCheck();
HTMLElement::removedFrom(insertionPoint);
- FormAssociatedElement::removedFrom(insertionPoint);
+ ListedElement::removedFrom(insertionPoint);
}
void HTMLFormControlElement::willChangeForm() {
- FormAssociatedElement::willChangeForm();
+ ListedElement::willChangeForm();
formOwnerSetNeedsValidityCheck();
if (formOwner() && canBeSuccessfulSubmitButton())
formOwner()->invalidateDefaultButtonStyle();
}
void HTMLFormControlElement::didChangeForm() {
- FormAssociatedElement::didChangeForm();
+ ListedElement::didChangeForm();
formOwnerSetNeedsValidityCheck();
if (formOwner() && isConnected() && canBeSuccessfulSubmitButton())
formOwner()->invalidateDefaultButtonStyle();
@@ -315,7 +315,7 @@ void HTMLFormControlElement::dispatchChangeEvent() {
}
HTMLFormElement* HTMLFormControlElement::formOwner() const {
- return FormAssociatedElement::form();
+ return ListedElement::form();
}
bool HTMLFormControlElement::isDisabledFormControl() const {
@@ -586,7 +586,7 @@ void HTMLFormControlElement::setNeedsValidityCheck() {
}
void HTMLFormControlElement::setCustomValidity(const String& error) {
- FormAssociatedElement::setCustomValidity(error);
+ ListedElement::setCustomValidity(error);
setNeedsValidityCheck();
}

Powered by Google App Engine
This is Rietveld 408576698