diff --git a/dom/ipc/BrowserChild.cpp b/dom/ipc/BrowserChild.cpp index 84b806b3d525..b36772f0c83c 100644 --- a/dom/ipc/BrowserChild.cpp +++ b/dom/ipc/BrowserChild.cpp @@ -208,7 +208,7 @@ bool BrowserChild::UpdateFrame(const RepaintRequest& aRequest) { // Guard against stale updates (updates meant for a pres shell which // has since been torn down and destroyed). if (aRequest.GetPresShellId() == presShell->GetPresShellId()) { - ProcessUpdateFrame(aRequest); + APZCCallbackHelper::UpdateRootFrame(aRequest); return true; } } @@ -221,14 +221,6 @@ bool BrowserChild::UpdateFrame(const RepaintRequest& aRequest) { return true; } -void BrowserChild::ProcessUpdateFrame(const RepaintRequest& aRequest) { - if (!mBrowserChildMessageManager) { - return; - } - - APZCCallbackHelper::UpdateRootFrame(aRequest); -} - NS_IMETHODIMP ContentListener::HandleEvent(Event* aEvent) { RemoteDOMEvent remoteEvent; diff --git a/dom/ipc/BrowserChild.h b/dom/ipc/BrowserChild.h index 2b7365efc7da..044c8ab728ba 100644 --- a/dom/ipc/BrowserChild.h +++ b/dom/ipc/BrowserChild.h @@ -752,10 +752,6 @@ class BrowserChild final : public nsMessageManagerScriptExecutor, void DispatchMessageManagerMessage(const nsAString& aMessageName, const nsAString& aJSONData); - void ProcessUpdateFrame(const mozilla::layers::RepaintRequest& aRequest); - - bool UpdateFrameHandler(const mozilla::layers::RepaintRequest& aRequest); - void HandleDoubleTap(const CSSPoint& aPoint, const Modifiers& aModifiers, const ScrollableLayerGuid& aGuid);