mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1056457 - Remove batch changes in selection carets. r=roc
This commit is contained in:
parent
1675ec52e7
commit
ce44192262
@ -712,16 +712,7 @@ SelectionCarets::SetSelectionDragState(bool aState)
|
||||
{
|
||||
nsIFrame* caretFocusFrame = GetCaretFocusFrame();
|
||||
nsRefPtr<nsFrameSelection> fs = caretFocusFrame->GetFrameSelection();
|
||||
if (fs->GetDragState() == aState) {
|
||||
return;
|
||||
}
|
||||
fs->SetDragState(aState);
|
||||
|
||||
if (aState) {
|
||||
fs->StartBatchChanges();
|
||||
} else {
|
||||
fs->EndBatchChanges();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user