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:
Mats Palmgren 2012-01-28 16:55:23 +01:00
parent 1cbfbebabd
commit ca0036d096

View File

@ -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;
}
}