Bug 1090008 -Part 1 - Refactor the logic to dispatch selectionchange to TextDialog, r=roc

This commit is contained in:
pchang
2014-11-28 05:35:00 +01:00
parent c1e445a306
commit caa30f7d54
4 changed files with 98 additions and 118 deletions

View File

@@ -793,8 +793,6 @@ nsTextInputListener::NotifySelectionChanged(nsIDOMDocument* aDoc, nsISelection*
}
}
UpdateTextInputCommands(NS_LITERAL_STRING("selectionchange"), aSel, aReason);
// if the collapsed state did not change, don't fire notifications
if (collapsed == mSelectionWasCollapsed)
return NS_OK;