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

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

Issue 2076933002: Add more comprehensive tests for slotchange events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/html/HTMLSlotElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
index 02e9279d0792cbb813b7d80195ed553274ce64ec..2af5bde13f26900e0d8b403d1a61251b83c4332c 100644
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
@@ -315,7 +315,7 @@ bool HTMLSlotElement::hasAssignedNodesSlow() const
DCHECK(root);
DCHECK(root->isV1());
SlotAssignment& assignment = root->ensureSlotAssignment();
- if (assignment.findSlot(*this) != this)
+ if (assignment.findSlotByName(name()) != this)
return false;
return assignment.findHostChildBySlotName(name());
}

Powered by Google App Engine
This is Rietveld 408576698