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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.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/shadow/ShadowRoot.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
index 0ad8b55ca3167f133b931d9ea8f474adee5778a8..0d243d7f703033f1bf9d2c56b0fc138a7e77a620 100644
--- a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
@@ -177,7 +177,7 @@ Node::InsertionNotificationRequest ShadowRoot::insertedInto(ContainerNode* inser
return InsertionDone;
}
-void ShadowRoot::removedFrom(ContainerNode* insertionPoint)
+void ShadowRoot::removedFrom(ContainerNode* insertionPoint, Node* next)
{
if (insertionPoint->inDocument()) {
document().styleEngine().shadowRootRemovedFromDocument(this);
@@ -191,7 +191,7 @@ void ShadowRoot::removedFrom(ContainerNode* insertionPoint)
}
}
- DocumentFragment::removedFrom(insertionPoint);
+ DocumentFragment::removedFrom(insertionPoint, next);
}
void ShadowRoot::childrenChanged(const ChildrenChange& change)

Powered by Google App Engine
This is Rietveld 408576698