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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLabelElement.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/HTMLLabelElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
index 52932b17fe7915fa4a9c2309f085f4ce51c5d308..fb13d31420596be550b9ec9b55b9900427076eaf 100644
--- a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
@@ -252,15 +252,15 @@ Node::InsertionNotificationRequest HTMLLabelElement::insertedInto(ContainerNode*
return result;
}
-void HTMLLabelElement::removedFrom(ContainerNode* insertionPoint)
+void HTMLLabelElement::removedFrom(ContainerNode* insertionPoint, Node* next)
{
if (insertionPoint->isInTreeScope() && treeScope() == document()) {
TreeScope& treeScope = insertionPoint->treeScope();
if (treeScope.shouldCacheLabelsByForAttribute())
updateLabel(treeScope, fastGetAttribute(forAttr), nullAtom);
}
- 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