Bug 1056457 - Remove batch changes in selection carets. r=roc

This commit is contained in:
Morris Tseng 2014-08-20 20:23:00 +02:00
parent 1675ec52e7
commit ce44192262

View File

@ -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