зеркало из https://github.com/mozilla/gecko-dev.git
Bug 973323 - Fix incorrect spelling of DispatchCompositionEventRunnable in TextComposition.cpp and TextComposition.h. r=smaug
This commit is contained in:
Родитель
c53b5e864f
Коммит
281ce0b838
|
@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче