зеркало из https://github.com/mozilla/pjs.git
disabling some range stuff while I fix it
This commit is contained in:
Родитель
de83babca6
Коммит
60246b11d8
|
@ -645,7 +645,7 @@ nsGenericDOMDataNode::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
nsresult
|
||||
nsGenericDOMDataNode::RangeAdd(nsIDOMRange& aRange)
|
||||
{
|
||||
// lazy allocation of range list
|
||||
#if 0 // lazy allocation of range list
|
||||
if (nsnull == mRangeList) {
|
||||
mRangeList = new nsVoidArray();
|
||||
}
|
||||
|
@ -656,13 +656,14 @@ nsGenericDOMDataNode::RangeAdd(nsIDOMRange& aRange)
|
|||
PRBool rv = mRangeList->AppendElement(&aRange);
|
||||
if (rv) return NS_OK;
|
||||
return NS_ERROR_FAILURE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsGenericDOMDataNode::RangeRemove(nsIDOMRange& aRange)
|
||||
{
|
||||
if (mRangeList) {
|
||||
#if 0 if (mRangeList) {
|
||||
// dont need to release - this call is made by the range object itself
|
||||
PRBool rv = mRangeList->RemoveElement(&aRange);
|
||||
if (rv) {
|
||||
|
@ -673,6 +674,7 @@ nsGenericDOMDataNode::RangeRemove(nsIDOMRange& aRange)
|
|||
}
|
||||
}
|
||||
return NS_ERROR_FAILURE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче