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/SlotAssignment.cpp

Issue 2241193004: Fix a crash: SlotAssignment is unintentionally created for v0 shadow trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/shadow/SlotAssignment.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp b/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp
index 0d86721f8884f556cc0296ad22af405e5f60e53e..37567a189d1e54433265c49d600bf5729a061348 100644
--- a/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp
@@ -105,6 +105,7 @@ SlotAssignment::SlotAssignment(ShadowRoot& owner)
, m_needsCollectSlots(false)
, m_slotCount(0)
{
+ DCHECK(owner.isV1());
}
static void detachNotAssignedNode(Node& node)

Powered by Google App Engine
This is Rietveld 408576698