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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1995203002: Rewrite Shadow DOM distribution engine to support partial synchronous distribution for v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No longer FAIL: imported/wpt/shadow-dom/HTMLSlotElement-interface.html Created 4 years, 7 months 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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index f8e5af2088cdee03cb49d3c4116f384da9679355..50073a9be90cdd4aa5f18ea3b6cc9f77b075368a 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3840,6 +3840,11 @@ void Document::nodeChildrenWillBeRemoved(ContainerNode& container)
frame->page()->dragCaretController().nodeWillBeRemoved(n);
}
}
+
+ if (containsV1ShadowTree()) {
+ for (Node& n : NodeTraversal::childrenOf(container))
+ n.checkSlotChangeBeforeRemoved();
+ }
}
void Document::nodeWillBeRemoved(Node& n)
@@ -3855,6 +3860,9 @@ void Document::nodeWillBeRemoved(Node& n)
frame->selection().nodeWillBeRemoved(n);
frame->page()->dragCaretController().nodeWillBeRemoved(n);
}
+
+ if (containsV1ShadowTree())
+ n.checkSlotChangeBeforeRemoved();
}
void Document::dataWillChange(const CharacterData& characterData)
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/DocumentOrderedMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698