зеркало из https://github.com/mozilla/pjs.git
invalid != for unix I will investigate this later. What i am checkin in now SHOULD remove any ambiguity in the code.
This commit is contained in:
Родитель
71ee2dd13e
Коммит
789f8c3ebc
|
@ -1648,7 +1648,7 @@ nsRangeList::FixupSelectionPoints(nsIDOMRange *aRange , nsDirection *aDir, PRBoo
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
}
|
||||
if (startNode != FetchAnchorNode() || startOffset != FetchAnchorOffset())
|
||||
if (FetchAnchorNode() != startNode.get() || startOffset != FetchAnchorOffset())
|
||||
dirty = PR_TRUE; //something has changed we are dirty no matter what
|
||||
if (dirty && *aDir != mDirection) //fixup took place but new direction all bets are off
|
||||
{
|
||||
|
@ -1656,7 +1656,7 @@ nsRangeList::FixupSelectionPoints(nsIDOMRange *aRange , nsDirection *aDir, PRBoo
|
|||
mFixupState = PR_FALSE;
|
||||
}
|
||||
else
|
||||
if (FetchOriginalAnchorNode() == startNode && PR_TRUE == mFixupState) //no longer a fixup
|
||||
if (startNode.get() != FetchOriginalAnchorNode() && PR_TRUE == mFixupState) //no longer a fixup
|
||||
{
|
||||
*aFixupState = PR_TRUE;
|
||||
mFixupState = PR_FALSE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче