mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 05:15:09 +00:00
Bug 1402251 - Assert ranges our not added to multiple common ancestor lists. r=smaug
This commit is contained in:
parent
74f1c6ece5
commit
d059041927
@ -439,6 +439,8 @@ nsRange::RegisterCommonAncestor(nsINode* aNode)
|
||||
if (!ranges) {
|
||||
ranges = MakeUnique<LinkedList<nsRange>>();
|
||||
}
|
||||
|
||||
MOZ_DIAGNOSTIC_ASSERT(!isInList());
|
||||
ranges->insertBack(this);
|
||||
aNode->SetCommonAncestorForRangeInSelection();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user