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

Unified Diff: third_party/WebKit/Source/core/dom/Element.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/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index d54240953a41d9654d01dadb43402f3721bc3ebc..f368a8a37394f4da8985f0b02fc8ef76ff1d6b5c 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1474,7 +1474,7 @@ Node::InsertionNotificationRequest Element::insertedInto(ContainerNode* insertio
return InsertionDone;
}
-void Element::removedFrom(ContainerNode* insertionPoint)
+void Element::removedFrom(ContainerNode* insertionPoint, Node* next)
{
bool wasInDocument = insertionPoint->inDocument();
@@ -1506,7 +1506,7 @@ void Element::removedFrom(ContainerNode* insertionPoint)
updateName(nameValue, nullAtom);
}
- ContainerNode::removedFrom(insertionPoint);
+ ContainerNode::removedFrom(insertionPoint, next);
if (wasInDocument) {
if (this == document().cssTarget())
document().setCSSTarget(nullptr);

Powered by Google App Engine
This is Rietveld 408576698