Index: third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp |
diff --git a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp |
index bb422e0ca97c250efaa68788420776827ce1b193..5b4c05688fd675fe6c4719694c6bf4029c5d5005 100644 |
--- a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp |
+++ b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp |
@@ -50,7 +50,11 @@ void DocumentStyleSheetCollection::CollectStyleSheetsFromCandidates( |
DocumentStyleSheetCollector& collector) { |
DocumentOrderedList::MutationForbiddenScope mutation_forbidden_( |
&style_sheet_candidate_nodes_); |
+ CHECK(HeapObjectHeader::FromPayload(this)->IsValid()); |
haraken
2017/04/21 10:51:54
Add a TODO to remove the checks once the investiga
|
+ CHECK(ThreadState::Current()->IsOnThreadHeap(this)); |
for (Node* n : style_sheet_candidate_nodes_) { |
+ CHECK(HeapObjectHeader::FromPayload(n)->IsValid()); |
+ CHECK(ThreadState::Current()->IsOnThreadHeap(n)); |
StyleSheetCandidate candidate(*n); |
DCHECK(!candidate.IsXSL()); |