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

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

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 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 7847d89e7a44b4fb2311b5608b20c9dcf8057657..92e5d9367bd419217d853a07b70901f401797675 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
@@ -285,7 +285,7 @@ Node::InsertionNotificationRequest HTMLFormControlElement::insertedInto(Containe
return InsertionDone;
}
-void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint)
+void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint, Node* next)
{
fieldSetAncestorsSetNeedsValidityCheck(insertionPoint);
hideVisibleValidationMessage();
@@ -293,8 +293,8 @@ void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint)
m_ancestorDisabledState = AncestorDisabledStateUnknown;
m_dataListAncestorState = Unknown;
setNeedsWillValidateCheck();
- HTMLElement::removedFrom(insertionPoint);
- FormAssociatedElement::removedFrom(insertionPoint);
+ HTMLElement::removedFrom(insertionPoint, next);
+ FormAssociatedElement::removedFrom(insertionPoint, next);
document().removeFormAssociation(this);
}

Powered by Google App Engine
This is Rietveld 408576698