tor-browser

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

commit ad5777e1a15536603825589db0b353adea9a95cc
parent 64d037700e8cfc0ae93f989a9a2c9810e3a52197
Author: Andrew McCreight <continuation@gmail.com>
Date:   Wed,  3 Dec 2025 13:53:36 +0000

Bug 2003609, part 2 - Clean up some nsISizeOf.h includes. r=jwatt

NS_DECL_ADDSIZEOFEXCLUDINGTHIS is defined in nsINode.h

nsISizeOf is only needed for the QI in the .cpp files.

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

Diffstat:
Mdom/svg/SVGFEImageElement.h | 2+-
Mdom/svg/SVGImageElement.cpp | 2+-
Mdom/svg/SVGImageElement.h | 2+-
Mdom/xul/nsXULElement.cpp | 1+
Mdom/xul/nsXULElement.h | 2+-
5 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/dom/svg/SVGFEImageElement.h b/dom/svg/SVGFEImageElement.h @@ -9,7 +9,7 @@ #include "SVGAnimatedPreserveAspectRatio.h" #include "mozilla/dom/SVGFilters.h" -#include "nsISizeOf.h" +#include "nsINode.h" nsresult NS_NewSVGFEImageElement( nsIContent** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo); diff --git a/dom/svg/SVGImageElement.cpp b/dom/svg/SVGImageElement.cpp @@ -16,7 +16,7 @@ #include "mozilla/gfx/2D.h" #include "nsCOMPtr.h" #include "nsContentUtils.h" -#include "nsIURI.h" +#include "nsISizeOf.h" #include "nsNetUtil.h" NS_IMPL_NS_NEW_SVG_ELEMENT(Image) diff --git a/dom/svg/SVGImageElement.h b/dom/svg/SVGImageElement.h @@ -12,7 +12,7 @@ #include "mozilla/dom/SVGAnimatedString.h" #include "mozilla/dom/SVGGeometryElement.h" #include "mozilla/gfx/2D.h" -#include "nsISizeOf.h" +#include "nsINode.h" #include "nsImageLoadingContent.h" nsresult NS_NewSVGImageElement( diff --git a/dom/xul/nsXULElement.cpp b/dom/xul/nsXULElement.cpp @@ -102,6 +102,7 @@ #include "nsIObjectOutputStream.h" #include "nsIRunnable.h" #include "nsIScriptContext.h" +#include "nsISizeOf.h" #include "nsISupportsUtils.h" #include "nsIURI.h" #include "nsIXPConnect.h" diff --git a/dom/xul/nsXULElement.h b/dom/xul/nsXULElement.h @@ -43,13 +43,13 @@ #include "nsGkAtoms.h" #include "nsIContent.h" #include "nsINode.h" -#include "nsISizeOf.h" #include "nsISupports.h" #include "nsLiteralString.h" #include "nsString.h" #include "nsStyledElement.h" #include "nsTArray.h" #include "nsTLiteralString.h" +#include "nsWindowSizes.h" #include "nscore.h" class JSObject;