tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 3d7f82dd4cb5e77156cea1d4b7d53b97edf0a61a
parent 37db33174d7bb511621240fbd49929b935b38d5a
Author: Jeff Muizelaar <jmuizelaar@mozilla.com>
Date:   Fri, 28 Nov 2025 23:22:53 +0000

Bug 2002909 - Don't include nsXULElement.h in Document.h r=layout-reviewers,hiro

A forward declaration is sufficient.

Differential Revision: https://phabricator.services.mozilla.com/D274368

Diffstat:
Mdom/base/Document.cpp | 1+
Mdom/base/Document.h | 2+-
Mlayout/generic/nsIFrame.cpp | 1+
3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp @@ -453,6 +453,7 @@ #include "nsXPCOMCID.h" #include "nsXULAppAPI.h" #include "nsXULCommandDispatcher.h" +#include "nsXULElement.h" #include "nsXULPopupManager.h" #include "nsXULPrototypeDocument.h" #include "prthread.h" diff --git a/dom/base/Document.h b/dom/base/Document.h @@ -104,7 +104,6 @@ #include "nsURIHashKey.h" #include "nsWeakReference.h" #include "nsWindowSizes.h" -#include "nsXULElement.h" #include "nscore.h" // XXX We need to include this here to ensure that DefaultDeleter for Servo @@ -184,6 +183,7 @@ class nsTextNode; class nsViewManager; class nsViewportInfo; class nsXULPrototypeDocument; +class nsXULPrototypeElement; struct JSContext; struct nsFont; diff --git a/layout/generic/nsIFrame.cpp b/layout/generic/nsIFrame.cpp @@ -103,6 +103,7 @@ #include "nsStyleStructInlines.h" #include "nsTableWrapperFrame.h" #include "nsTextControlFrame.h" +#include "nsXULElement.h" // For triple-click pref #include "RetainedDisplayListBuilder.h"