Bug 733335 - dexpcom nsIEditableTextAccessible::GetAssociatedEditor, r=davidb

This commit is contained in:
Alexander Surkov
2012-03-08 12:28:38 +09:00
parent f0276c4f59
commit fd1ca8bf76
13 changed files with 98 additions and 103 deletions

View File

@@ -680,8 +680,7 @@ NotificationController::CreateTextChangeEventFor(AccMutationEvent* aEvent)
// Don't fire event for the first html:br in an editor.
if (aEvent->mAccessible->Role() == roles::WHITESPACE) {
nsCOMPtr<nsIEditor> editor;
textAccessible->GetAssociatedEditor(getter_AddRefs(editor));
nsCOMPtr<nsIEditor> editor = textAccessible->GetEditor();
if (editor) {
bool isEmpty = false;
editor->GetDocumentIsEmpty(&isEmpty);