From e6a0102a3b137a0b1e5393a35495bdc3cc62ccb3 Mon Sep 17 00:00:00 2001 From: Artur Iunusov Date: Tue, 20 Feb 2024 16:53:22 +0000 Subject: [PATCH] Bug 1770944 - Remove `nsIMozBrowserFrame`. r=smaug Depends on D155254 Differential Revision: https://phabricator.services.mozilla.com/D170397 --- dom/base/Element.h | 11 -- .../InProcessBrowserChildMessageManager.cpp | 10 -- dom/base/nsFrameLoader.cpp | 142 ++---------------- dom/base/nsFrameLoader.h | 9 -- dom/chrome-webidl/FrameLoader.webidl | 7 - dom/html/HTMLIFrameElement.h | 5 - dom/html/nsGenericHTMLFrameElement.cpp | 43 +----- dom/html/nsGenericHTMLFrameElement.h | 16 +- dom/interfaces/html/moz.build | 1 - dom/interfaces/html/nsIMozBrowserFrame.idl | 34 ----- dom/ipc/ContentParent.cpp | 1 - dom/ipc/ProcessPriorityManager.cpp | 22 --- dom/ipc/ProcessPriorityManager.h | 2 - layout/generic/ViewportFrame.cpp | 1 - layout/style/GeckoBindings.cpp | 1 - 15 files changed, 17 insertions(+), 288 deletions(-) delete mode 100644 dom/interfaces/html/nsIMozBrowserFrame.idl diff --git a/dom/base/Element.h b/dom/base/Element.h index 3641d5fb909a..1692e41b9a3d 100644 --- a/dom/base/Element.h +++ b/dom/base/Element.h @@ -90,7 +90,6 @@ class nsIDOMXULSelectControlElement; class nsIDOMXULSelectControlItemElement; class nsIFrame; class nsIHTMLCollection; -class nsIMozBrowserFrame; class nsIPrincipal; class nsIScreen; class nsIScrollableFrame; @@ -458,16 +457,6 @@ class Element : public FragmentOrElement { */ virtual bool IsInteractiveHTMLContent() const; - /** - * Returns |this| as an nsIMozBrowserFrame* if the element is a frame or - * iframe element. - * - * We have this method, rather than using QI, so that we can use it during - * the servo traversal, where we can't QI DOM nodes because of non-thread-safe - * refcounts. - */ - virtual nsIMozBrowserFrame* GetAsMozBrowserFrame() { return nullptr; } - /** * Is the attribute named aAttribute a mapped attribute? */ diff --git a/dom/base/InProcessBrowserChildMessageManager.cpp b/dom/base/InProcessBrowserChildMessageManager.cpp index 191ec9f7b52b..1de39cbd98f6 100644 --- a/dom/base/InProcessBrowserChildMessageManager.cpp +++ b/dom/base/InProcessBrowserChildMessageManager.cpp @@ -13,7 +13,6 @@ #include "nsFrameLoaderOwner.h" #include "nsQueryObject.h" #include "xpcpublic.h" -#include "nsIMozBrowserFrame.h" #include "mozilla/EventDispatcher.h" #include "mozilla/dom/ChromeMessageSender.h" #include "mozilla/dom/Document.h" @@ -100,15 +99,6 @@ InProcessBrowserChildMessageManager::InProcessBrowserChildMessageManager( mOwner(aOwner), mChromeMessageManager(aChrome) { mozilla::HoldJSObjects(this); - - // If owner corresponds to an