mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 714587 - If the new boundary point is null, as it is for the call from Reset(), then it's expected that the new common ancestor is also null. r=smaug
This commit is contained in:
parent
1cbfbebabd
commit
ca0036d096
@ -750,7 +750,8 @@ nsRange::DoSetRange(nsINode* aStartN, PRInt32 aStartOffset,
|
||||
if (newCommonAncestor) {
|
||||
RegisterCommonAncestor(newCommonAncestor);
|
||||
} else {
|
||||
NS_ASSERTION(mIsDetached, "unexpected disconnected nodes");
|
||||
NS_ASSERTION(mIsDetached || !mIsPositioned,
|
||||
"unexpected disconnected nodes");
|
||||
mInSelection = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user