mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83111
This commit is contained in:
parent
d365910319
commit
96fb649d21
@ -203,3 +203,5 @@ void SelectionManager::ProcessSelectionChanged(SelData* aSelData) {
|
||||
nsIAccessibleEvent::EVENT_TEXT_ATTRIBUTE_CHANGED, text);
|
||||
}
|
||||
}
|
||||
|
||||
SelectionManager::~SelectionManager() = default;
|
||||
|
@ -6,7 +6,6 @@
|
||||
#ifndef mozilla_a11y_SelectionManager_h__
|
||||
#define mozilla_a11y_SelectionManager_h__
|
||||
|
||||
#include "nsIFrame.h"
|
||||
#include "nsISelectionListener.h"
|
||||
#include "mozilla/WeakPtr.h"
|
||||
|
||||
@ -107,6 +106,8 @@ class SelectionManager : public nsISelectionListener {
|
||||
mAccWithCaret = nullptr;
|
||||
}
|
||||
|
||||
~SelectionManager();
|
||||
|
||||
protected:
|
||||
SelectionManager();
|
||||
|
||||
|
@ -11,9 +11,9 @@
|
||||
#include "nsIAccessibleTypes.h"
|
||||
#include "nsDirection.h"
|
||||
#include "WordMovementType.h"
|
||||
#include "nsIFrame.h"
|
||||
|
||||
class nsFrameSelection;
|
||||
class nsIFrame;
|
||||
class nsRange;
|
||||
class nsIWidget;
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
#define nsFrameLoader_h_
|
||||
|
||||
#include "nsDocShell.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsStringFwd.h"
|
||||
#include "nsPoint.h"
|
||||
#include "nsSize.h"
|
||||
@ -28,7 +29,6 @@
|
||||
#include "mozilla/layers/LayersTypes.h"
|
||||
#include "nsStubMutationObserver.h"
|
||||
#include "Units.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsPluginTags.h"
|
||||
|
||||
class nsIURI;
|
||||
|
@ -15,12 +15,12 @@
|
||||
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/dom/BindingDeclarations.h"
|
||||
#include "nsIFrame.h" // for WeakFrame only
|
||||
#include "nsImageLoadingContent.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIChannelEventSink.h"
|
||||
#include "nsIObjectLoadingContent.h"
|
||||
#include "nsIRunnable.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsFrameLoaderOwner.h"
|
||||
|
||||
class nsAsyncInstantiateEvent;
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/layers/APZUtils.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "Units.h"
|
||||
#include "WheelHandlingHelper.h" // for WheelDeltaAdjustmentStrategy
|
||||
|
||||
@ -24,6 +23,7 @@ class nsFrameLoader;
|
||||
class nsIContent;
|
||||
class nsIDocShell;
|
||||
class nsIDocShellTreeItem;
|
||||
class nsIFrame;
|
||||
class imgIContainer;
|
||||
class nsIContentViewer;
|
||||
class nsIScrollableFrame;
|
||||
|
@ -10,9 +10,10 @@
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/EventForwards.h"
|
||||
#include "nsCoord.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIFrame.h" // for AutoWeakFrame only
|
||||
#include "nsPoint.h"
|
||||
|
||||
class nsIFrame;
|
||||
class nsIScrollableFrame;
|
||||
class nsITimer;
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIFrame.h" // for WeakFrame only
|
||||
#include "nsISupportsBase.h"
|
||||
#include "nsISupportsImpl.h"
|
||||
#include "nsLiteralString.h"
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include "mozilla/WeakPtr.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsDocShell.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIReflowObserver.h"
|
||||
#include "nsIScrollObserver.h"
|
||||
#include "nsPoint.h"
|
||||
|
@ -10,12 +10,12 @@
|
||||
#define nsGenConList_h___
|
||||
|
||||
#include "mozilla/LinkedList.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsStyleStruct.h"
|
||||
#include "nsCSSPseudoElements.h"
|
||||
#include "nsTextNode.h"
|
||||
|
||||
class nsGenConList;
|
||||
class nsIFrame;
|
||||
|
||||
struct nsGenConNode : public mozilla::LinkedListElement<nsGenConNode> {
|
||||
using StyleContentType = mozilla::StyleContentItem::Tag;
|
||||
|
@ -7,7 +7,8 @@
|
||||
#define NSIFRAMETRAVERSAL_H
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsIFrame.h"
|
||||
|
||||
class nsIFrame;
|
||||
|
||||
#define NS_IFRAMEENUMERATOR_IID \
|
||||
{ \
|
||||
|
@ -9,9 +9,9 @@
|
||||
#ifndef nsBlockReflowContext_h___
|
||||
#define nsBlockReflowContext_h___
|
||||
|
||||
#include "nsIFrame.h"
|
||||
#include "mozilla/ReflowOutput.h"
|
||||
|
||||
class nsIFrame;
|
||||
class nsLineBox;
|
||||
class nsPresContext;
|
||||
namespace mozilla {
|
||||
|
@ -10,8 +10,10 @@
|
||||
#define nsHTMLParts_h___
|
||||
|
||||
#include "nscore.h"
|
||||
#include "nsFrameState.h"
|
||||
#include "nsISupports.h"
|
||||
#include "nsIFrame.h"
|
||||
|
||||
class nsContainerFrame;
|
||||
class nsComboboxControlFrame;
|
||||
class nsCheckboxRadioFrame;
|
||||
class nsAtom;
|
||||
@ -25,8 +27,13 @@ class nsIURI;
|
||||
class nsIChannel;
|
||||
class nsTableColFrame;
|
||||
namespace mozilla {
|
||||
class ComputedStyle;
|
||||
class PresShell;
|
||||
class ViewportFrame;
|
||||
|
||||
namespace dom {
|
||||
class Document;
|
||||
}
|
||||
} // namespace mozilla
|
||||
|
||||
// Factory methods for creating html layout objects
|
||||
|
@ -14,9 +14,9 @@
|
||||
#include "nsPrintObject.h"
|
||||
#include "nsPrintData.h"
|
||||
#include "nsFrameList.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIWebProgress.h"
|
||||
#include "mozilla/dom/HTMLCanvasElement.h"
|
||||
#include "nsIFrame.h" // for WeakFrame only
|
||||
#include "nsIWebProgressListener.h"
|
||||
#include "nsWeakReference.h"
|
||||
|
||||
@ -27,6 +27,7 @@
|
||||
class nsPagePrintTimer;
|
||||
class nsIDocShell;
|
||||
class nsIDocumentViewerPrint;
|
||||
class nsIFrame;
|
||||
class nsPrintObject;
|
||||
class nsIDocShell;
|
||||
class nsPageSequenceFrame;
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class imgIContainer;
|
||||
class nsIFrame;
|
||||
class nsPresContext;
|
||||
class nsIURI;
|
||||
class nsIPrincipal;
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "mozilla/SVGUtils.h"
|
||||
#include "CSSFilterInstance.h"
|
||||
#include "SVGFilterPaintCallback.h"
|
||||
#include "SVGIntegrationUtils.h"
|
||||
|
||||
using namespace mozilla::dom;
|
||||
using namespace mozilla::gfx;
|
||||
|
@ -17,7 +17,6 @@
|
||||
#include "nsRect.h"
|
||||
#include "nsSize.h"
|
||||
#include "nsTArray.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "mozilla/gfx/2D.h"
|
||||
#include "mozilla/webrender/WebRenderTypes.h"
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/SVGContainerFrame.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsQueryFrame.h"
|
||||
|
||||
class nsAtom;
|
||||
|
@ -12,16 +12,18 @@
|
||||
#include "FrameProperties.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "nsID.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIFrame.h" // only for LayoutFrameType
|
||||
#include "nsIMutationObserver.h"
|
||||
#include "nsISupportsBase.h"
|
||||
#include "nsISupportsImpl.h"
|
||||
#include "nsIReferrerInfo.h"
|
||||
#include "nsStringFwd.h"
|
||||
#include "nsStubMutationObserver.h"
|
||||
#include "nsStyleStruct.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
|
||||
class nsAtom;
|
||||
class nsIFrame;
|
||||
class nsIURI;
|
||||
|
||||
namespace mozilla {
|
||||
|
@ -32,7 +32,6 @@ class gfxContext;
|
||||
class nsFrameList;
|
||||
class nsIContent;
|
||||
|
||||
class nsIFrame;
|
||||
class nsPresContext;
|
||||
class nsTextFrame;
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include "nsGrid.h"
|
||||
#include "nsGridRowGroupLayout.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIScrollableFrame.h"
|
||||
#include "nsSprocketLayout.h"
|
||||
#include "nsGridLayout2.h"
|
||||
|
@ -10,7 +10,10 @@
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "nsBoxLayout.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsFrameState.h"
|
||||
|
||||
class nsIFrame;
|
||||
struct nsRect;
|
||||
|
||||
class nsBoxSize {
|
||||
public:
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include "nsIDragService.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsRefPtrHashtable.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsBaseWidget.h"
|
||||
#include "CompositorWidget.h"
|
||||
#include "mozilla/widget/WindowSurface.h"
|
||||
@ -81,6 +80,7 @@ void WindowDragLeaveHandler(GtkWidget* aWidget);
|
||||
#endif
|
||||
|
||||
class gfxPattern;
|
||||
class nsIFrame;
|
||||
|
||||
namespace mozilla {
|
||||
class TimeStamp;
|
||||
|
Loading…
Reference in New Issue
Block a user