Bug 1445005. Remove the eventMode bits from frameloader. r=qdot
This commit is contained in:
@@ -169,7 +169,6 @@ nsFrameLoader::nsFrameLoader(Element* aOwner, nsPIDOMWindowOuter* aOpener,
|
||||
, mRemoteBrowser(nullptr)
|
||||
, mChildID(0)
|
||||
, mJSPluginID(aJSPluginID)
|
||||
, mEventMode(FrameLoaderBinding::EVENT_MODE_NORMAL_DISPATCH)
|
||||
, mBrowserChangingProcessBlockers(nullptr)
|
||||
, mDepthTooGreat(false)
|
||||
, mIsTopLevelContent(false)
|
||||
|
||||
@@ -173,12 +173,6 @@ public:
|
||||
|
||||
already_AddRefed<nsIMessageSender> GetMessageManager();
|
||||
|
||||
uint32_t EventMode() const { return mEventMode; }
|
||||
void SetEventMode(uint32_t aEventMode)
|
||||
{
|
||||
mEventMode = aEventMode;
|
||||
}
|
||||
|
||||
already_AddRefed<Element> GetOwnerElement();
|
||||
|
||||
uint32_t LazyWidth() const;
|
||||
@@ -479,10 +473,6 @@ private:
|
||||
|
||||
int32_t mJSPluginID;
|
||||
|
||||
// See FrameLoader.webidl. EVENT_MODE_NORMAL_DISPATCH automatically
|
||||
// forwards some input events to out-of-process content.
|
||||
uint32_t mEventMode;
|
||||
|
||||
// Holds the last known size of the frame.
|
||||
mozilla::ScreenIntSize mLazySize;
|
||||
|
||||
|
||||
@@ -1439,11 +1439,6 @@ EventStateManager::HandleCrossProcessEvent(WidgetEvent* aEvent,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (frameLoader->EventMode() ==
|
||||
FrameLoaderBinding::EVENT_MODE_DONT_FORWARD_TO_CHILD) {
|
||||
continue;
|
||||
}
|
||||
|
||||
DispatchCrossProcessEvent(aEvent, frameLoader, aStatus);
|
||||
}
|
||||
return aEvent->HasBeenPostedToRemoteProcess();
|
||||
|
||||
@@ -116,25 +116,6 @@ interface FrameLoader {
|
||||
nsIPrintSettings aPrintSettings,
|
||||
optional nsIWebProgressListener? aProgressListener = null);
|
||||
|
||||
/**
|
||||
* The default event mode automatically forwards the events
|
||||
* handled in EventStateManager::HandleCrossProcessEvent to
|
||||
* the child content process when these events are targeted to
|
||||
* the remote browser element.
|
||||
*
|
||||
* Used primarly for input events (mouse, keyboard)
|
||||
*/
|
||||
const unsigned long EVENT_MODE_NORMAL_DISPATCH = 0x00000000;
|
||||
|
||||
/**
|
||||
* With this event mode, it's the application's responsability to
|
||||
* convert and forward events to the content process
|
||||
*/
|
||||
const unsigned long EVENT_MODE_DONT_FORWARD_TO_CHILD = 0x00000001;
|
||||
|
||||
[Pure]
|
||||
attribute unsigned long eventMode;
|
||||
|
||||
/**
|
||||
* If false, then the subdocument is not clipped to its CSS viewport, and the
|
||||
* subdocument's viewport scrollbar(s) are not rendered.
|
||||
|
||||
Reference in New Issue
Block a user