зеркало из https://github.com/mozilla/gecko-dev.git
Fix assert to reflect new reality. Bug 372086 followup, r+sr=sicking
This commit is contained in:
Родитель
8905e30af4
Коммит
db77bdbfb8
|
@ -408,6 +408,12 @@ nsRange::DoSetRange(nsINode* aStartN, PRInt32 aStartOffset,
|
|||
aRoot == IsValidBoundary(aEndN)),
|
||||
"Wrong root");
|
||||
NS_PRECONDITION(!aRoot ||
|
||||
(aStartN->IsNodeOfType(nsINode::eCONTENT) &&
|
||||
aEndN->IsNodeOfType(nsINode::eCONTENT) &&
|
||||
aRoot ==
|
||||
NS_STATIC_CAST(nsIContent*, aStartN)->GetBindingParent() &&
|
||||
aRoot ==
|
||||
NS_STATIC_CAST(nsIContent*, aEndN)->GetBindingParent()) ||
|
||||
(!aRoot->GetNodeParent() &&
|
||||
(aRoot->IsNodeOfType(nsINode::eDOCUMENT) ||
|
||||
aRoot->IsNodeOfType(nsINode::eATTRIBUTE) ||
|
||||
|
|
Загрузка…
Ссылка в новой задаче