Bug 973323 - Fix incorrect spelling of DispatchCompositionEventRunnable in TextComposition.cpp and TextComposition.h. r=smaug

This commit is contained in:
Kunal Arora 2014-02-18 09:47:55 -05:00
Родитель c53b5e864f
Коммит 281ce0b838
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -114,8 +114,8 @@ TextComposition::NotityUpdateComposition(WidgetGUIEvent* aEvent)
}
void
TextComposition::DispatchCompsotionEventRunnable(uint32_t aEventMessage,
const nsAString& aData)
TextComposition::DispatchCompositionEventRunnable(uint32_t aEventMessage,
const nsAString& aData)
{
nsContentUtils::AddScriptRunner(
new CompositionEventDispatcher(mPresContext, mNode,
@ -128,10 +128,10 @@ TextComposition::SynthesizeCommit(bool aDiscard)
nsRefPtr<TextComposition> kungFuDeathGrip(this);
nsAutoString data(aDiscard ? EmptyString() : mLastData);
if (mLastData != data) {
DispatchCompsotionEventRunnable(NS_COMPOSITION_UPDATE, data);
DispatchCompsotionEventRunnable(NS_TEXT_TEXT, data);
DispatchCompositionEventRunnable(NS_COMPOSITION_UPDATE, data);
DispatchCompositionEventRunnable(NS_TEXT_TEXT, data);
}
DispatchCompsotionEventRunnable(NS_COMPOSITION_END, data);
DispatchCompositionEventRunnable(NS_COMPOSITION_END, data);
}
nsresult

Просмотреть файл

@ -219,7 +219,7 @@ private:
};
/**
* DispatchCompsotionEventRunnable() dispatches a composition or text event
* DispatchCompositionEventRunnable() dispatches a composition or text event
* to the content. Be aware, if you use this method, nsPresShellEventCB
* isn't used. That means that nsIFrame::HandleEvent() is never called.
* WARNING: The instance which is managed by nsIMEStateManager may be
@ -231,8 +231,8 @@ private:
* Used for theText value if aEventMessage is
* NS_TEXT_TEXT.
*/
void DispatchCompsotionEventRunnable(uint32_t aEventMessage,
const nsAString& aData);
void DispatchCompositionEventRunnable(uint32_t aEventMessage,
const nsAString& aData);
};
/**