disabling some range stuff while I fix it

This commit is contained in:
jfrancis%netscape.com 1999-01-04 13:06:43 +00:00
Родитель de83babca6
Коммит 60246b11d8
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -645,7 +645,7 @@ nsGenericDOMDataNode::HandleDOMEvent(nsIPresContext& aPresContext,
nsresult nsresult
nsGenericDOMDataNode::RangeAdd(nsIDOMRange& aRange) nsGenericDOMDataNode::RangeAdd(nsIDOMRange& aRange)
{ {
// lazy allocation of range list #if 0 // lazy allocation of range list
if (nsnull == mRangeList) { if (nsnull == mRangeList) {
mRangeList = new nsVoidArray(); mRangeList = new nsVoidArray();
} }
@ -656,13 +656,14 @@ nsGenericDOMDataNode::RangeAdd(nsIDOMRange& aRange)
PRBool rv = mRangeList->AppendElement(&aRange); PRBool rv = mRangeList->AppendElement(&aRange);
if (rv) return NS_OK; if (rv) return NS_OK;
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
#endif
} }
nsresult nsresult
nsGenericDOMDataNode::RangeRemove(nsIDOMRange& aRange) nsGenericDOMDataNode::RangeRemove(nsIDOMRange& aRange)
{ {
if (mRangeList) { #if 0 if (mRangeList) {
// dont need to release - this call is made by the range object itself // dont need to release - this call is made by the range object itself
PRBool rv = mRangeList->RemoveElement(&aRange); PRBool rv = mRangeList->RemoveElement(&aRange);
if (rv) { if (rv) {
@ -673,6 +674,7 @@ nsGenericDOMDataNode::RangeRemove(nsIDOMRange& aRange)
} }
} }
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
#endif
} }