mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1179695 - Remove mWasAsync from WidgetQueryContentEvent. r=masayuki,nchen
This commit is contained in:
parent
7e8beb711d
commit
e7d7a10538
@ -510,7 +510,6 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
MOZ_ASSERT(aWidget);
|
||||
|
||||
aEvent.mSucceeded = false;
|
||||
aEvent.mWasAsync = false;
|
||||
aEvent.mReply.mFocusedWidget = aWidget;
|
||||
|
||||
switch (aEvent.message) {
|
||||
|
@ -464,7 +464,6 @@ public:
|
||||
nsIWidget* aWidget)
|
||||
: WidgetGUIEvent(aIsTrusted, aMessage, aWidget, eQueryContentEventClass)
|
||||
, mSucceeded(false)
|
||||
, mWasAsync(false)
|
||||
, mUseNativeLineBreak(true)
|
||||
, mWithFontRanges(false)
|
||||
{
|
||||
@ -546,7 +545,6 @@ public:
|
||||
}
|
||||
|
||||
bool mSucceeded;
|
||||
bool mWasAsync;
|
||||
bool mUseNativeLineBreak;
|
||||
bool mWithFontRanges;
|
||||
struct
|
||||
|
@ -1895,7 +1895,7 @@ nsWindow::OnIMEEvent(AndroidGeckoEvent *ae)
|
||||
this);
|
||||
InitEvent(event, nullptr);
|
||||
DispatchEvent(&event);
|
||||
MOZ_ASSERT(event.mSucceeded && !event.mWasAsync);
|
||||
MOZ_ASSERT(event.mSucceeded);
|
||||
|
||||
if (start < 0)
|
||||
start = int32_t(event.GetSelectionStart());
|
||||
@ -1978,7 +1978,7 @@ nsWindow::OnIMEEvent(AndroidGeckoEvent *ae)
|
||||
this);
|
||||
InitEvent(queryEvent, nullptr);
|
||||
DispatchEvent(&queryEvent);
|
||||
MOZ_ASSERT(queryEvent.mSucceeded && !queryEvent.mWasAsync);
|
||||
MOZ_ASSERT(queryEvent.mSucceeded);
|
||||
event.mData = queryEvent.mReply.mString;
|
||||
}
|
||||
|
||||
|
@ -597,7 +597,6 @@ struct ParamTraits<mozilla::WidgetQueryContentEvent>
|
||||
|
||||
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
||||
{
|
||||
aResult->mWasAsync = true;
|
||||
return ReadParam(aMsg, aIter,
|
||||
static_cast<mozilla::WidgetGUIEvent*>(aResult)) &&
|
||||
ReadParam(aMsg, aIter, &aResult->mSucceeded) &&
|
||||
|
Loading…
Reference in New Issue
Block a user