mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
small fix for bug23833 r= jfrancis
This commit is contained in:
parent
689f8aa0a3
commit
035bf4f17e
@ -1584,7 +1584,6 @@ nsHTMLEditRules::WillAlign(nsIDOMSelection *aSelection,
|
||||
*aCancel = PR_FALSE;
|
||||
*aHandled = PR_FALSE;
|
||||
|
||||
nsAutoSelectionReset selectionResetter(aSelection);
|
||||
|
||||
PRBool outMakeEmpty;
|
||||
res = ShouldMakeEmptyBlock(aSelection, alignType, &outMakeEmpty);
|
||||
@ -1611,6 +1610,8 @@ nsHTMLEditRules::WillAlign(nsIDOMSelection *aSelection,
|
||||
return res;
|
||||
}
|
||||
|
||||
nsAutoSelectionReset selectionResetter(aSelection);
|
||||
|
||||
// convert the selection ranges into "promoted" selection ranges:
|
||||
// this basically just expands the range to include the immediate
|
||||
// block parent, and then further expands to include any ancestors
|
||||
|
@ -1584,7 +1584,6 @@ nsHTMLEditRules::WillAlign(nsIDOMSelection *aSelection,
|
||||
*aCancel = PR_FALSE;
|
||||
*aHandled = PR_FALSE;
|
||||
|
||||
nsAutoSelectionReset selectionResetter(aSelection);
|
||||
|
||||
PRBool outMakeEmpty;
|
||||
res = ShouldMakeEmptyBlock(aSelection, alignType, &outMakeEmpty);
|
||||
@ -1611,6 +1610,8 @@ nsHTMLEditRules::WillAlign(nsIDOMSelection *aSelection,
|
||||
return res;
|
||||
}
|
||||
|
||||
nsAutoSelectionReset selectionResetter(aSelection);
|
||||
|
||||
// convert the selection ranges into "promoted" selection ranges:
|
||||
// this basically just expands the range to include the immediate
|
||||
// block parent, and then further expands to include any ancestors
|
||||
|
Loading…
Reference in New Issue
Block a user