зеркало из https://github.com/mozilla/pjs.git
fixing sun/sparc i guess it didnt like the inline if/else statement. separating out.
This commit is contained in:
Родитель
715a4c2a34
Коммит
fa7f4ce180
|
@ -1844,7 +1844,13 @@ printf("SetMouseDownState to FALSE - stopping cell selection\n");
|
||||||
mSelectingTableCells = PR_FALSE;
|
mSelectingTableCells = PR_FALSE;
|
||||||
mStartSelectedCell = nsnull;
|
mStartSelectedCell = nsnull;
|
||||||
mEndSelectedCell = nsnull;
|
mEndSelectedCell = nsnull;
|
||||||
PostReason(aState?nsISelectionListener::MOUSEDOWN_REASON:nsISelectionListener::MOUSEUP_REASON);//not a drag reason
|
|
||||||
|
short reason;
|
||||||
|
if (aState)
|
||||||
|
reason = nsISelectionListener::MOUSEDOWN_REASON;
|
||||||
|
else
|
||||||
|
reason = nsISelectionListener::MOUSEUP_REASON;
|
||||||
|
PostReason(reason);//not a drag reason
|
||||||
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);//notify that reason is mouse up please.
|
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);//notify that reason is mouse up please.
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
|
@ -1844,7 +1844,13 @@ printf("SetMouseDownState to FALSE - stopping cell selection\n");
|
||||||
mSelectingTableCells = PR_FALSE;
|
mSelectingTableCells = PR_FALSE;
|
||||||
mStartSelectedCell = nsnull;
|
mStartSelectedCell = nsnull;
|
||||||
mEndSelectedCell = nsnull;
|
mEndSelectedCell = nsnull;
|
||||||
PostReason(aState?nsISelectionListener::MOUSEDOWN_REASON:nsISelectionListener::MOUSEUP_REASON);//not a drag reason
|
|
||||||
|
short reason;
|
||||||
|
if (aState)
|
||||||
|
reason = nsISelectionListener::MOUSEDOWN_REASON;
|
||||||
|
else
|
||||||
|
reason = nsISelectionListener::MOUSEUP_REASON;
|
||||||
|
PostReason(reason);//not a drag reason
|
||||||
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);//notify that reason is mouse up please.
|
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);//notify that reason is mouse up please.
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
|
@ -1844,7 +1844,13 @@ printf("SetMouseDownState to FALSE - stopping cell selection\n");
|
||||||
mSelectingTableCells = PR_FALSE;
|
mSelectingTableCells = PR_FALSE;
|
||||||
mStartSelectedCell = nsnull;
|
mStartSelectedCell = nsnull;
|
||||||
mEndSelectedCell = nsnull;
|
mEndSelectedCell = nsnull;
|
||||||
PostReason(aState?nsISelectionListener::MOUSEDOWN_REASON:nsISelectionListener::MOUSEUP_REASON);//not a drag reason
|
|
||||||
|
short reason;
|
||||||
|
if (aState)
|
||||||
|
reason = nsISelectionListener::MOUSEDOWN_REASON;
|
||||||
|
else
|
||||||
|
reason = nsISelectionListener::MOUSEUP_REASON;
|
||||||
|
PostReason(reason);//not a drag reason
|
||||||
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);//notify that reason is mouse up please.
|
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);//notify that reason is mouse up please.
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче