Bug 515685 - Calculate modified-text mutation only when needed, r=surkov

This commit is contained in:
David Bolter 2009-09-12 00:55:20 -04:00
parent 1b1aa514a9
commit 200c04a3e4

View File

@ -568,11 +568,13 @@ nsAccTextChangeEvent::
aAccessible, aIsAsynch),
mStart(aStart), mLength(aLength), mIsInserted(aIsInserted)
{
#ifdef XP_WIN
nsCOMPtr<nsIAccessibleText> textAccessible = do_QueryInterface(aAccessible);
NS_ASSERTION(textAccessible, "Should not be firing test change event for non-text accessible!!!");
if (textAccessible) {
textAccessible->GetText(aStart, aStart + aLength, mModifiedText);
}
#endif
}
NS_IMETHODIMP