зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1364805 part 4 - Remove the now unused LayoutFrameType values from the ctors. r=jfkthame
MozReview-Commit-ID: 1RSDoc3pQXf
This commit is contained in:
Родитель
483a804512
Коммит
a254b64145
|
@ -23,7 +23,7 @@ using mozilla::dom::HTMLInputElement;
|
|||
using mozilla::dom::CallerType;
|
||||
|
||||
nsColorControlFrame::nsColorControlFrame(nsStyleContext* aContext)
|
||||
: nsHTMLButtonControlFrame(aContext, kClassID, LayoutFrameType::ColorControl)
|
||||
: nsHTMLButtonControlFrame(aContext, kClassID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@ static int32_t gReflowInx = -1;
|
|||
//------------------------------------------------------
|
||||
|
||||
nsComboboxControlFrame::nsComboboxControlFrame(nsStyleContext* aContext)
|
||||
: nsBlockFrame(aContext, kClassID, LayoutFrameType::ComboboxControl)
|
||||
: nsBlockFrame(aContext, kClassID)
|
||||
, mDisplayFrame(nullptr)
|
||||
, mButtonFrame(nullptr)
|
||||
, mDropdownFrame(nullptr)
|
||||
|
@ -1286,7 +1286,7 @@ public:
|
|||
|
||||
nsComboboxDisplayFrame(nsStyleContext* aContext,
|
||||
nsComboboxControlFrame* aComboBox)
|
||||
: nsBlockFrame(aContext, kClassID, LayoutFrameType::ComboboxDisplay)
|
||||
: nsBlockFrame(aContext, kClassID)
|
||||
, mComboBox(aComboBox)
|
||||
{}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ NS_QUERYFRAME_HEAD(nsDateTimeControlFrame)
|
|||
NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
|
||||
|
||||
nsDateTimeControlFrame::nsDateTimeControlFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::DateTimeControl)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ NS_NewFieldSetFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsFieldSetFrame)
|
||||
|
||||
nsFieldSetFrame::nsFieldSetFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::FieldSet)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mLegendRect(GetWritingMode())
|
||||
{
|
||||
mLegendSpace = 0;
|
||||
|
|
|
@ -19,7 +19,7 @@ using namespace mozilla;
|
|||
|
||||
nsFormControlFrame::nsFormControlFrame(nsStyleContext* aContext,
|
||||
nsIFrame::ClassID aID)
|
||||
: nsAtomicContainerFrame(aContext, aID, LayoutFrameType::FormControl)
|
||||
: nsAtomicContainerFrame(aContext, aID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
* @param aContent the content representing this frame
|
||||
* @param aParentFrame the parent frame
|
||||
*/
|
||||
explicit nsFormControlFrame(nsStyleContext*, nsIFrame::ClassID);
|
||||
nsFormControlFrame(nsStyleContext*, nsIFrame::ClassID);
|
||||
|
||||
virtual bool IsFrameOfType(uint32_t aFlags) const override
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
using namespace mozilla;
|
||||
|
||||
nsGfxButtonControlFrame::nsGfxButtonControlFrame(nsStyleContext* aContext)
|
||||
: nsHTMLButtonControlFrame(aContext, kClassID, LayoutFrameType::GfxButtonControl)
|
||||
: nsHTMLButtonControlFrame(aContext, kClassID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -27,9 +27,8 @@ NS_NewHTMLButtonControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsHTMLButtonControlFrame)
|
||||
|
||||
nsHTMLButtonControlFrame::nsHTMLButtonControlFrame(nsStyleContext* aContext,
|
||||
nsIFrame::ClassID aID,
|
||||
LayoutFrameType aType)
|
||||
: nsContainerFrame(aContext, aID, aType)
|
||||
nsIFrame::ClassID aID)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -19,8 +19,7 @@ class nsHTMLButtonControlFrame : public nsContainerFrame,
|
|||
{
|
||||
public:
|
||||
explicit nsHTMLButtonControlFrame(nsStyleContext* aContext)
|
||||
: nsHTMLButtonControlFrame(aContext, kClassID,
|
||||
mozilla::LayoutFrameType::HTMLButtonControl)
|
||||
: nsHTMLButtonControlFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
~nsHTMLButtonControlFrame();
|
||||
|
@ -106,8 +105,7 @@ public:
|
|||
nsStyleChangeList& aChangeList,
|
||||
nsChangeHint aHintForThisFrame) override;
|
||||
protected:
|
||||
nsHTMLButtonControlFrame(nsStyleContext* aContext, nsIFrame::ClassID aID,
|
||||
mozilla::LayoutFrameType aType);
|
||||
nsHTMLButtonControlFrame(nsStyleContext* aContext, nsIFrame::ClassID aID);
|
||||
|
||||
virtual bool IsInput() { return false; }
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
};
|
||||
|
||||
nsImageControlFrame::nsImageControlFrame(nsStyleContext* aContext)
|
||||
: nsImageFrame(aContext, kClassID, LayoutFrameType::ImageControl)
|
||||
: nsImageFrame(aContext, kClassID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ public:
|
|||
NS_DECL_FRAMEARENA_HELPERS(nsLegendFrame)
|
||||
|
||||
explicit nsLegendFrame(nsStyleContext* aContext)
|
||||
: nsBlockFrame(aContext, kClassID, mozilla::LayoutFrameType::Legend)
|
||||
: nsBlockFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
virtual void Reflow(nsPresContext* aPresContext,
|
||||
|
|
|
@ -92,7 +92,7 @@ NS_IMPL_FRAMEARENA_HELPERS(nsListControlFrame)
|
|||
|
||||
//---------------------------------------------------------
|
||||
nsListControlFrame::nsListControlFrame(nsStyleContext* aContext)
|
||||
: nsHTMLScrollFrame(aContext, kClassID, LayoutFrameType::ListControl, false)
|
||||
: nsHTMLScrollFrame(aContext, kClassID, false)
|
||||
, mView(nullptr)
|
||||
, mMightNeedSecondPass(false)
|
||||
, mHasPendingInterruptAtStartOfReflow(false)
|
||||
|
|
|
@ -39,7 +39,7 @@ NS_NewMeterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsMeterFrame)
|
||||
|
||||
nsMeterFrame::nsMeterFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::Meter)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mBarDiv(nullptr)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ NS_QUERYFRAME_HEAD(nsNumberControlFrame)
|
|||
NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
|
||||
|
||||
nsNumberControlFrame::nsNumberControlFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::NumberControl)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mHandlingInputEvent(false)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ NS_NewProgressFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsProgressFrame)
|
||||
|
||||
nsProgressFrame::nsProgressFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::Progress)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mBarDiv(nullptr)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ NS_NewRangeFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
}
|
||||
|
||||
nsRangeFrame::nsRangeFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::Range)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ private:
|
|||
#endif
|
||||
|
||||
nsTextControlFrame::nsTextControlFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::TextInput)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mFirstBaseline(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
, mEditorHasBeenInitialized(false)
|
||||
, mIsProcessing(false)
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
|
||||
protected:
|
||||
explicit BRFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, kClassID, LayoutFrameType::Br)
|
||||
: nsFrame(aContext, kClassID)
|
||||
, mAscent(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
{}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ NS_NewDetailsFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
namespace mozilla {
|
||||
|
||||
DetailsFrame::DetailsFrame(nsStyleContext* aContext)
|
||||
: nsBlockFrame(aContext, kClassID, LayoutFrameType::Details)
|
||||
: nsBlockFrame(aContext, kClassID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
NS_DECL_FRAMEARENA_HELPERS(ViewportFrame)
|
||||
|
||||
explicit ViewportFrame(nsStyleContext* aContext)
|
||||
: ViewportFrame(aContext, kClassID, mozilla::LayoutFrameType::Viewport)
|
||||
: ViewportFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
virtual ~ViewportFrame() { } // useful for debugging
|
||||
|
@ -77,8 +77,8 @@ public:
|
|||
#endif
|
||||
|
||||
protected:
|
||||
ViewportFrame(nsStyleContext* aContext, ClassID aID, mozilla::LayoutFrameType aType)
|
||||
: nsContainerFrame(aContext, aID, aType)
|
||||
ViewportFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
, mView(nullptr)
|
||||
{}
|
||||
|
||||
|
|
|
@ -40,9 +40,8 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
nsAtomicContainerFrame(nsStyleContext* aContext, ClassID aID,
|
||||
mozilla::LayoutFrameType aType)
|
||||
: nsContainerFrame(aContext, aID, aType)
|
||||
nsAtomicContainerFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
{}
|
||||
};
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ public:
|
|||
NS_DECL_FRAMEARENA_HELPERS(nsBackdropFrame)
|
||||
|
||||
explicit nsBackdropFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, kClassID, mozilla::LayoutFrameType::Backdrop)
|
||||
: nsFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
#ifdef DEBUG_FRAME_DUMP
|
||||
|
|
|
@ -396,8 +396,8 @@ public:
|
|||
};
|
||||
|
||||
protected:
|
||||
nsBlockFrame(nsStyleContext* aContext, ClassID aID, mozilla::LayoutFrameType aType)
|
||||
: nsContainerFrame(aContext, aID, aType)
|
||||
explicit nsBlockFrame(nsStyleContext* aContext, ClassID aID = kClassID)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
, mMinWidth(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
, mPrefWidth(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
{
|
||||
|
@ -406,10 +406,6 @@ protected:
|
|||
#endif
|
||||
}
|
||||
|
||||
explicit nsBlockFrame(nsStyleContext* aContext, ClassID aID = kClassID)
|
||||
: nsBlockFrame(aContext, aID, mozilla::LayoutFrameType::Block)
|
||||
{}
|
||||
|
||||
virtual ~nsBlockFrame();
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
#endif
|
||||
|
||||
explicit nsBulletFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, kClassID, mozilla::LayoutFrameType::Bullet)
|
||||
: nsFrame(aContext, kClassID)
|
||||
, mPadding(GetWritingMode())
|
||||
, mIntrinsicSize(GetWritingMode())
|
||||
, mOrdinal(0)
|
||||
|
|
|
@ -34,7 +34,7 @@ class nsCanvasFrame final : public nsContainerFrame,
|
|||
{
|
||||
public:
|
||||
explicit nsCanvasFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::Canvas)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mDoPaintFocus(false)
|
||||
, mAddedScrollPositionListener(false)
|
||||
{}
|
||||
|
|
|
@ -129,7 +129,7 @@ NS_NewColumnSetFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, nsFrame
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsColumnSetFrame)
|
||||
|
||||
nsColumnSetFrame::nsColumnSetFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::ColumnSet)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mLastBalanceBSize(NS_INTRINSICSIZE)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -534,8 +534,8 @@ public:
|
|||
#endif
|
||||
|
||||
protected:
|
||||
nsContainerFrame(nsStyleContext* aContext, ClassID aID, mozilla::LayoutFrameType aType)
|
||||
: nsSplittableFrame(aContext, aID, aType)
|
||||
nsContainerFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsSplittableFrame(aContext, aID)
|
||||
{}
|
||||
|
||||
~nsContainerFrame();
|
||||
|
|
|
@ -17,7 +17,7 @@ public:
|
|||
NS_DECL_FRAMEARENA_HELPERS(nsFirstLetterFrame)
|
||||
|
||||
explicit nsFirstLetterFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::Letter)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
|
|
|
@ -132,7 +132,7 @@ public:
|
|||
protected:
|
||||
// Protected constructor & destructor
|
||||
explicit nsFlexContainerFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::FlexContainer)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mBaselineFromLastReflow(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
, mLastBaselineFromLastReflow(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
{}
|
||||
|
|
|
@ -465,8 +465,8 @@ NS_NewEmptyFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
return new (aPresShell) nsFrame(aContext);
|
||||
}
|
||||
|
||||
nsFrame::nsFrame(nsStyleContext* aContext, ClassID aID, LayoutFrameType aType)
|
||||
: nsBox(aID, aType)
|
||||
nsFrame::nsFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsBox(aID)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsFrame);
|
||||
|
||||
|
|
|
@ -584,9 +584,9 @@ public:
|
|||
|
||||
protected:
|
||||
// Protected constructor and destructor
|
||||
nsFrame(nsStyleContext* aContext, ClassID aID, mozilla::LayoutFrameType aType);
|
||||
nsFrame(nsStyleContext* aContext, ClassID aID);
|
||||
explicit nsFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, ClassID::nsFrame_id, mozilla::LayoutFrameType::None) {}
|
||||
: nsFrame(aContext, ClassID::nsFrame_id) {}
|
||||
virtual ~nsFrame();
|
||||
|
||||
/**
|
||||
|
|
|
@ -158,7 +158,7 @@ public:
|
|||
|
||||
protected:
|
||||
explicit nsHTMLFramesetBlankFrame(nsStyleContext* aContext)
|
||||
: nsLeafFrame(aContext, kClassID, LayoutFrameType::None)
|
||||
: nsLeafFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
virtual ~nsHTMLFramesetBlankFrame();
|
||||
|
@ -176,7 +176,7 @@ bool nsHTMLFramesetFrame::gDragInProgress = false;
|
|||
#define DEFAULT_BORDER_WIDTH_PX 6
|
||||
|
||||
nsHTMLFramesetFrame::nsHTMLFramesetFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::FrameSet)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
{
|
||||
mNumRows = 0;
|
||||
mNumCols = 0;
|
||||
|
@ -1336,7 +1336,7 @@ nsHTMLFramesetBorderFrame::nsHTMLFramesetBorderFrame(nsStyleContext* aContext,
|
|||
int32_t aWidth,
|
||||
bool aVertical,
|
||||
bool aVisibility)
|
||||
: nsLeafFrame(aContext, kClassID, LayoutFrameType::None)
|
||||
: nsLeafFrame(aContext, kClassID)
|
||||
, mWidth(aWidth)
|
||||
, mVertical(aVertical)
|
||||
, mVisibility(aVisibility)
|
||||
|
|
|
@ -111,9 +111,8 @@ NS_IMPL_FRAMEARENA_HELPERS(nsHTMLScrollFrame)
|
|||
|
||||
nsHTMLScrollFrame::nsHTMLScrollFrame(nsStyleContext* aContext,
|
||||
nsIFrame::ClassID aID,
|
||||
LayoutFrameType aType,
|
||||
bool aIsRoot)
|
||||
: nsContainerFrame(aContext, aID, aType)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
, mHelper(ALLOW_THIS_IN_INITIALIZER_LIST(this), aIsRoot)
|
||||
{
|
||||
}
|
||||
|
@ -1162,7 +1161,7 @@ NS_IMPL_FRAMEARENA_HELPERS(nsXULScrollFrame)
|
|||
nsXULScrollFrame::nsXULScrollFrame(nsStyleContext* aContext,
|
||||
bool aIsRoot,
|
||||
bool aClipAllDescendants)
|
||||
: nsBoxFrame(aContext, kClassID, LayoutFrameType::Scroll, aIsRoot)
|
||||
: nsBoxFrame(aContext, kClassID, aIsRoot)
|
||||
, mHelper(ALLOW_THIS_IN_INITIALIZER_LIST(this), aIsRoot)
|
||||
{
|
||||
SetXULLayoutManager(nullptr);
|
||||
|
|
|
@ -1060,12 +1060,11 @@ public:
|
|||
|
||||
protected:
|
||||
nsHTMLScrollFrame(nsStyleContext* aContext, bool aIsRoot)
|
||||
: nsHTMLScrollFrame(aContext, kClassID, mozilla::LayoutFrameType::Scroll, aIsRoot)
|
||||
: nsHTMLScrollFrame(aContext, kClassID, aIsRoot)
|
||||
{}
|
||||
|
||||
nsHTMLScrollFrame(nsStyleContext* aContext,
|
||||
nsIFrame::ClassID aID,
|
||||
mozilla::LayoutFrameType aType,
|
||||
bool aIsRoot);
|
||||
void SetSuppressScrollbarUpdate(bool aSuppress) {
|
||||
mHelper.mSupppressScrollbarUpdate = aSuppress;
|
||||
|
@ -1112,7 +1111,7 @@ public:
|
|||
typedef mozilla::CSSIntPoint CSSIntPoint;
|
||||
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS(nsXULScrollFrame)
|
||||
NS_DECL_FRAMEARENA_HELPERS(nsXULScrollFrame)
|
||||
|
||||
friend nsXULScrollFrame* NS_NewXULScrollFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext,
|
||||
|
|
|
@ -257,7 +257,7 @@ protected:
|
|||
friend nsContainerFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
explicit nsGridContainerFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::GridContainer)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mCachedMinISize(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
, mCachedPrefISize(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
NS_DECL_FRAMEARENA_HELPERS(nsHTMLCanvasFrame)
|
||||
|
||||
explicit nsHTMLCanvasFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::HTMLCanvas)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mBorderPadding(GetWritingMode())
|
||||
{}
|
||||
|
||||
|
|
|
@ -607,7 +607,7 @@ public:
|
|||
|
||||
NS_DECL_QUERYFRAME_TARGET(nsIFrame)
|
||||
|
||||
explicit nsIFrame(ClassID aID, mozilla::LayoutFrameType aType)
|
||||
explicit nsIFrame(ClassID aID)
|
||||
: mRect()
|
||||
, mContent(nullptr)
|
||||
, mStyleContext(nullptr)
|
||||
|
|
|
@ -135,8 +135,8 @@ NS_NewImageFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsImageFrame)
|
||||
|
||||
nsImageFrame::nsImageFrame(nsStyleContext* aContext, ClassID aID, LayoutFrameType aType)
|
||||
: nsAtomicContainerFrame(aContext, aID, aType)
|
||||
nsImageFrame::nsImageFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsAtomicContainerFrame(aContext, aID)
|
||||
, mComputedSize(0, 0)
|
||||
, mIntrinsicRatio(0, 0)
|
||||
, mDisplayingIcon(false)
|
||||
|
|
|
@ -72,11 +72,6 @@ public:
|
|||
NS_DECL_FRAMEARENA_HELPERS(nsImageFrame)
|
||||
NS_DECL_QUERYFRAME
|
||||
|
||||
explicit nsImageFrame(nsStyleContext* aContext, ClassID aID = kClassID)
|
||||
: nsImageFrame(aContext, aID, mozilla::LayoutFrameType::Image)
|
||||
{}
|
||||
|
||||
|
||||
virtual void DestroyFrom(nsIFrame* aDestructRoot) override;
|
||||
virtual void DidSetStyleContext(nsStyleContext* aOldStyleContext) override;
|
||||
|
||||
|
@ -181,9 +176,13 @@ public:
|
|||
virtual bool ReflowFinished() override;
|
||||
virtual void ReflowCallbackCanceled() override;
|
||||
|
||||
protected:
|
||||
nsImageFrame(nsStyleContext* aContext, ClassID, mozilla::LayoutFrameType aType);
|
||||
private:
|
||||
friend nsIFrame* NS_NewImageFrame(nsIPresShell*, nsStyleContext*);
|
||||
explicit nsImageFrame(nsStyleContext* aContext)
|
||||
: nsImageFrame(aContext, kClassID) {}
|
||||
|
||||
protected:
|
||||
nsImageFrame(nsStyleContext* aContext, ClassID aID);
|
||||
virtual ~nsImageFrame();
|
||||
|
||||
void EnsureIntrinsicSizeAndRatio();
|
||||
|
|
|
@ -140,15 +140,11 @@ protected:
|
|||
}
|
||||
};
|
||||
|
||||
nsInlineFrame(nsStyleContext* aContext, ClassID aID, mozilla::LayoutFrameType aType)
|
||||
: nsContainerFrame(aContext, aID, aType)
|
||||
nsInlineFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
, mBaseline(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
{}
|
||||
|
||||
explicit nsInlineFrame(nsStyleContext* aContext, ClassID aID = kClassID)
|
||||
: nsInlineFrame(aContext, aID, mozilla::LayoutFrameType::Inline)
|
||||
{}
|
||||
|
||||
virtual LogicalSides GetLogicalSkipSides(const ReflowInput* aReflowInput = nullptr) const override;
|
||||
|
||||
void ReflowFrames(nsPresContext* aPresContext,
|
||||
|
@ -182,6 +178,10 @@ protected:
|
|||
InlineReflowInput& aState);
|
||||
|
||||
private:
|
||||
explicit nsInlineFrame(nsStyleContext* aContext)
|
||||
: nsInlineFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
// Helper method for DrainSelfOverflowList() to deal with lazy parenting
|
||||
// (which we only do for nsInlineFrame, not nsFirstLineFrame).
|
||||
enum DrainFlags {
|
||||
|
@ -232,7 +232,7 @@ public:
|
|||
|
||||
protected:
|
||||
explicit nsFirstLineFrame(nsStyleContext* aContext)
|
||||
: nsInlineFrame(aContext, kClassID, mozilla::LayoutFrameType::Line)
|
||||
: nsInlineFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
virtual nsIFrame* PullOneFrame(nsPresContext* aPresContext,
|
||||
|
|
|
@ -77,8 +77,8 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
nsLeafFrame(nsStyleContext* aContext, ClassID aID, mozilla::LayoutFrameType aType)
|
||||
: nsFrame(aContext, aID, aType)
|
||||
nsLeafFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsFrame(aContext, aID)
|
||||
{}
|
||||
|
||||
virtual ~nsLeafFrame();
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
|
||||
protected:
|
||||
explicit nsPageContentFrame(nsStyleContext* aContext)
|
||||
: ViewportFrame(aContext, kClassID, mozilla::LayoutFrameType::PageContent)
|
||||
: ViewportFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
nsSharedPageData* mPD;
|
||||
|
|
|
@ -41,7 +41,7 @@ NS_QUERYFRAME_HEAD(nsPageFrame)
|
|||
NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
|
||||
|
||||
nsPageFrame::nsPageFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::Page)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -682,7 +682,7 @@ NS_NewPageBreakFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsPageBreakFrame)
|
||||
|
||||
nsPageBreakFrame::nsPageBreakFrame(nsStyleContext* aContext)
|
||||
: nsLeafFrame(aContext, kClassID, LayoutFrameType::PageBreak)
|
||||
: nsLeafFrame(aContext, kClassID)
|
||||
, mHaveReflowed(false)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ public:
|
|||
nsStyleContext* aContext,
|
||||
nsFrameState aTypeBit);
|
||||
nsPlaceholderFrame(nsStyleContext* aContext, nsFrameState aTypeBit)
|
||||
: nsFrame(aContext, kClassID, mozilla::LayoutFrameType::Placeholder)
|
||||
: nsFrame(aContext, kClassID)
|
||||
, mOutOfFlowFrame(nullptr)
|
||||
{
|
||||
NS_PRECONDITION(aTypeBit == PLACEHOLDER_FOR_FLOAT ||
|
||||
|
|
|
@ -145,7 +145,7 @@ protected:
|
|||
};
|
||||
|
||||
nsPluginFrame::nsPluginFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, kClassID, LayoutFrameType::Object)
|
||||
: nsFrame(aContext, kClassID)
|
||||
, mInstanceOwner(nullptr)
|
||||
, mOuterView(nullptr)
|
||||
, mInnerView(nullptr)
|
||||
|
|
|
@ -66,7 +66,7 @@ protected:
|
|||
nsStyleContext* aContext);
|
||||
|
||||
explicit nsRubyBaseContainerFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::RubyBaseContainer)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
struct RubyReflowInput;
|
||||
|
|
|
@ -32,7 +32,7 @@ protected:
|
|||
friend nsContainerFrame* NS_NewRubyBaseFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
explicit nsRubyBaseFrame(nsStyleContext* aContext)
|
||||
: nsRubyContentFrame(aContext, kClassID, mozilla::LayoutFrameType::RubyBase)
|
||||
: nsRubyContentFrame(aContext, kClassID)
|
||||
{}
|
||||
};
|
||||
|
||||
|
|
|
@ -27,10 +27,8 @@ public:
|
|||
bool IsIntraLevelWhitespace() const;
|
||||
|
||||
protected:
|
||||
explicit nsRubyContentFrame(nsStyleContext* aContext,
|
||||
ClassID aID,
|
||||
mozilla::LayoutFrameType aType)
|
||||
: nsInlineFrame(aContext, aID, aType)
|
||||
nsRubyContentFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsInlineFrame(aContext, aID)
|
||||
{}
|
||||
};
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ protected:
|
|||
friend nsContainerFrame* NS_NewRubyFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
explicit nsRubyFrame(nsStyleContext* aContext)
|
||||
: nsInlineFrame(aContext, kClassID, mozilla::LayoutFrameType::Ruby)
|
||||
: nsInlineFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
void ReflowSegment(nsPresContext* aPresContext,
|
||||
|
|
|
@ -56,7 +56,7 @@ protected:
|
|||
nsStyleContext* aContext);
|
||||
|
||||
explicit nsRubyTextContainerFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::RubyTextContainer)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mISize(0)
|
||||
{}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ protected:
|
|||
friend nsContainerFrame* NS_NewRubyTextFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
explicit nsRubyTextFrame(nsStyleContext* aContext)
|
||||
: nsRubyContentFrame(aContext, kClassID, mozilla::LayoutFrameType::RubyText)
|
||||
: nsRubyContentFrame(aContext, kClassID)
|
||||
{}
|
||||
};
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ NS_NewSimplePageSequenceFrame(nsIPresShell* aPresShell, nsStyleContext* aContext
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsSimplePageSequenceFrame)
|
||||
|
||||
nsSimplePageSequenceFrame::nsSimplePageSequenceFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::Sequence)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mTotalPages(-1)
|
||||
, mSelectionHeight(-1)
|
||||
, mYSelOffset(0)
|
||||
|
|
|
@ -74,9 +74,8 @@ public:
|
|||
static void RemoveFromFlow(nsIFrame* aFrame);
|
||||
|
||||
protected:
|
||||
explicit nsSplittableFrame(nsStyleContext* aContext, ClassID aID,
|
||||
mozilla::LayoutFrameType aType)
|
||||
: nsFrame(aContext, aID, aType)
|
||||
nsSplittableFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsFrame(aContext, aID)
|
||||
, mPrevContinuation(nullptr)
|
||||
, mNextContinuation(nullptr)
|
||||
{}
|
||||
|
|
|
@ -59,7 +59,7 @@ GetDocumentFromView(nsView* aView)
|
|||
}
|
||||
|
||||
nsSubDocumentFrame::nsSubDocumentFrame(nsStyleContext* aContext)
|
||||
: nsAtomicContainerFrame(aContext, kClassID, LayoutFrameType::SubDocument)
|
||||
: nsAtomicContainerFrame(aContext, kClassID)
|
||||
, mOuterView(nullptr)
|
||||
, mInnerView(nullptr)
|
||||
, mIsInline(false)
|
||||
|
|
|
@ -51,7 +51,11 @@ class nsTextFrame : public nsFrame
|
|||
|
||||
public:
|
||||
explicit nsTextFrame(nsStyleContext* aContext, ClassID aID = kClassID)
|
||||
: nsTextFrame(aContext, aID, mozilla::LayoutFrameType::Text)
|
||||
: nsFrame(aContext, aID)
|
||||
, mNextContinuation(nullptr)
|
||||
, mContentOffset(0)
|
||||
, mContentLengthHint(0)
|
||||
, mAscent(0)
|
||||
{}
|
||||
|
||||
NS_DECL_FRAMEARENA_HELPERS(nsTextFrame)
|
||||
|
@ -648,16 +652,6 @@ public:
|
|||
uint32_t CountGraphemeClusters() const;
|
||||
|
||||
protected:
|
||||
nsTextFrame(nsStyleContext* aContext, ClassID aID, mozilla::LayoutFrameType aType)
|
||||
: nsFrame(aContext, aID, aType)
|
||||
, mNextContinuation(nullptr)
|
||||
, mContentOffset(0)
|
||||
, mContentLengthHint(0)
|
||||
, mAscent(0)
|
||||
{
|
||||
NS_ASSERTION(mContentOffset == 0, "Bogus content offset");
|
||||
}
|
||||
|
||||
virtual ~nsTextFrame();
|
||||
|
||||
RefPtr<gfxTextRun> mTextRun;
|
||||
|
|
|
@ -75,7 +75,7 @@ SwapScaleWidthHeightForRotation(IntSize& aSize, VideoInfo::Rotation aDegrees)
|
|||
}
|
||||
|
||||
nsVideoFrame::nsVideoFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::HTMLVideo)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
{
|
||||
EnableVisibilityTracking();
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ class nsMathMLContainerFrame : public nsContainerFrame,
|
|||
friend class nsMathMLmfencedFrame;
|
||||
public:
|
||||
nsMathMLContainerFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsContainerFrame(aContext, aID, mozilla::LayoutFrameType::None)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
, mIntrinsicWidth(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
, mBlockStartAscent(0)
|
||||
{}
|
||||
|
|
|
@ -21,7 +21,7 @@ class SVGFEContainerFrame : public nsContainerFrame
|
|||
NS_NewSVGFEContainerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit SVGFEContainerFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::SVGFEContainer)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_SVG_LAYOUT | NS_FRAME_IS_NONDISPLAY);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ class SVGFEImageFrame final : public nsFrame
|
|||
NS_NewSVGFEImageFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit SVGFEImageFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, kClassID, LayoutFrameType::SVGFEImage)
|
||||
: nsFrame(aContext, kClassID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_SVG_LAYOUT | NS_FRAME_IS_NONDISPLAY);
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class SVGFELeafFrame final : public nsFrame
|
|||
NS_NewSVGFELeafFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit SVGFELeafFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, kClassID, LayoutFrameType::SVGFELeaf)
|
||||
: nsFrame(aContext, kClassID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_SVG_LAYOUT | NS_FRAME_IS_NONDISPLAY);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ class SVGFEUnstyledLeafFrame : public nsFrame
|
|||
NS_NewSVGFEUnstyledLeafFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit SVGFEUnstyledLeafFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, kClassID, LayoutFrameType::SVGFEUnstyledLeaf)
|
||||
: nsFrame(aContext, kClassID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_SVG_LAYOUT | NS_FRAME_IS_NONDISPLAY);
|
||||
}
|
||||
|
|
|
@ -49,14 +49,14 @@ class SVGGeometryFrame : public nsFrame
|
|||
friend class ::nsDisplaySVGGeometry;
|
||||
|
||||
protected:
|
||||
SVGGeometryFrame(nsStyleContext* aContext, nsIFrame::ClassID aID, mozilla::LayoutFrameType aType)
|
||||
: nsFrame(aContext, aID, aType)
|
||||
SVGGeometryFrame(nsStyleContext* aContext, nsIFrame::ClassID aID)
|
||||
: nsFrame(aContext, aID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_SVG_LAYOUT | NS_FRAME_MAY_BE_TRANSFORMED);
|
||||
}
|
||||
|
||||
explicit SVGGeometryFrame(nsStyleContext* aContext)
|
||||
: SVGGeometryFrame(aContext, kClassID, mozilla::LayoutFrameType::SVGGeometry)
|
||||
: SVGGeometryFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
public:
|
||||
|
|
|
@ -193,7 +193,7 @@ class SVGTextFrame final : public nsSVGDisplayContainerFrame
|
|||
|
||||
protected:
|
||||
explicit SVGTextFrame(nsStyleContext* aContext)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::SVGText)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID)
|
||||
, mTrailingUndisplayedCharacters(0)
|
||||
, mFontSizeScaleFactor(1.0f)
|
||||
, mLastContextScale(1.0f)
|
||||
|
|
|
@ -24,7 +24,7 @@ class SVGViewFrame : public nsFrame
|
|||
NS_NewSVGViewFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit SVGViewFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, kClassID, LayoutFrameType::SVGView)
|
||||
: nsFrame(aContext, kClassID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_IS_NONDISPLAY);
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ class nsSVGAFrame : public nsSVGDisplayContainerFrame
|
|||
NS_NewSVGAFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit nsSVGAFrame(nsStyleContext* aContext)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID, LayoutFrameType::SVGA)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
public:
|
||||
|
|
|
@ -25,7 +25,7 @@ class nsSVGClipPathFrame final : public nsSVGContainerFrame
|
|||
|
||||
protected:
|
||||
explicit nsSVGClipPathFrame(nsStyleContext* aContext)
|
||||
: nsSVGContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::SVGClipPath)
|
||||
: nsSVGContainerFrame(aContext, kClassID)
|
||||
, mIsBeingProcessed(false)
|
||||
{
|
||||
AddStateBits(NS_FRAME_IS_NONDISPLAY);
|
||||
|
|
|
@ -34,7 +34,7 @@ NS_NewSVGContainerFrame(nsIPresShell* aPresShell,
|
|||
nsStyleContext* aContext)
|
||||
{
|
||||
nsIFrame* frame =
|
||||
new (aPresShell) nsSVGContainerFrame(aContext, nsSVGContainerFrame::kClassID, LayoutFrameType::None);
|
||||
new (aPresShell) nsSVGContainerFrame(aContext, nsSVGContainerFrame::kClassID);
|
||||
// If we were called directly, then the frame is for a <defs> or
|
||||
// an unknown element type. In both cases we prevent the content
|
||||
// from displaying directly.
|
||||
|
|
|
@ -40,8 +40,8 @@ class nsSVGContainerFrame : public nsContainerFrame
|
|||
friend nsIFrame* NS_NewSVGContainerFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
protected:
|
||||
nsSVGContainerFrame(nsStyleContext* aContext, ClassID aID, mozilla::LayoutFrameType aType)
|
||||
: nsContainerFrame(aContext, aID, aType)
|
||||
nsSVGContainerFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_SVG_LAYOUT);
|
||||
}
|
||||
|
@ -110,9 +110,8 @@ class nsSVGDisplayContainerFrame : public nsSVGContainerFrame,
|
|||
public nsSVGDisplayableFrame
|
||||
{
|
||||
protected:
|
||||
nsSVGDisplayContainerFrame(nsStyleContext* aContext, nsIFrame::ClassID aID,
|
||||
mozilla::LayoutFrameType aType)
|
||||
: nsSVGContainerFrame(aContext, aID, aType)
|
||||
nsSVGDisplayContainerFrame(nsStyleContext* aContext, nsIFrame::ClassID aID)
|
||||
: nsSVGContainerFrame(aContext, aID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_MAY_BE_TRANSFORMED);
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ class nsSVGFilterFrame : public nsSVGContainerFrame
|
|||
NS_NewSVGFilterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit nsSVGFilterFrame(nsStyleContext* aContext)
|
||||
: nsSVGContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::SVGFilter)
|
||||
: nsSVGContainerFrame(aContext, kClassID)
|
||||
, mLoopFlag(false)
|
||||
, mNoHRefURI(false)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@ NS_NewSVGForeignObjectFrame(nsIPresShell *aPresShell,
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsSVGForeignObjectFrame)
|
||||
|
||||
nsSVGForeignObjectFrame::nsSVGForeignObjectFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::SVGForeignObject)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mInReflow(false)
|
||||
{
|
||||
AddStateBits(NS_FRAME_REFLOW_ROOT | NS_FRAME_MAY_BE_TRANSFORMED |
|
||||
|
|
|
@ -15,13 +15,12 @@ class nsSVGGFrame : public nsSVGDisplayContainerFrame
|
|||
{
|
||||
friend nsIFrame*
|
||||
NS_NewSVGGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
nsSVGGFrame(nsStyleContext* aContext, nsIFrame::ClassID aID, mozilla::LayoutFrameType aType)
|
||||
: nsSVGDisplayContainerFrame(aContext, aID, aType)
|
||||
{}
|
||||
explicit nsSVGGFrame(nsStyleContext* aContext)
|
||||
: nsSVGGFrame(aContext, kClassID) {}
|
||||
|
||||
explicit nsSVGGFrame(nsStyleContext* aContext, nsIFrame::ClassID aID = kClassID)
|
||||
: nsSVGGFrame(aContext, aID, mozilla::LayoutFrameType::SVGG)
|
||||
protected:
|
||||
nsSVGGFrame(nsStyleContext* aContext, nsIFrame::ClassID aID)
|
||||
: nsSVGDisplayContainerFrame(aContext, aID)
|
||||
{}
|
||||
|
||||
public:
|
||||
|
|
|
@ -25,8 +25,7 @@ class nsSVGGenericContainerFrame final : public nsSVGDisplayContainerFrame
|
|||
|
||||
protected:
|
||||
explicit nsSVGGenericContainerFrame(nsStyleContext* aContext)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID,
|
||||
mozilla::LayoutFrameType::SVGGenericContainer)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
public:
|
||||
|
|
|
@ -26,9 +26,8 @@ using namespace mozilla::gfx;
|
|||
// Implementation
|
||||
|
||||
nsSVGGradientFrame::nsSVGGradientFrame(nsStyleContext* aContext,
|
||||
ClassID aID,
|
||||
LayoutFrameType aType)
|
||||
: nsSVGPaintServerFrame(aContext, aID, aType)
|
||||
ClassID aID)
|
||||
: nsSVGPaintServerFrame(aContext, aID)
|
||||
, mSource(nullptr)
|
||||
, mLoopFlag(false)
|
||||
, mNoHRefURI(false)
|
||||
|
|
|
@ -40,7 +40,7 @@ class nsSVGGradientFrame : public nsSVGPaintServerFrame
|
|||
typedef mozilla::gfx::ExtendMode ExtendMode;
|
||||
|
||||
protected:
|
||||
nsSVGGradientFrame(nsStyleContext* aContext, ClassID aID, mozilla::LayoutFrameType aType);
|
||||
nsSVGGradientFrame(nsStyleContext* aContext, ClassID aID);
|
||||
|
||||
public:
|
||||
NS_DECL_ABSTRACT_FRAME(nsSVGGradientFrame)
|
||||
|
@ -127,7 +127,7 @@ class nsSVGLinearGradientFrame : public nsSVGGradientFrame
|
|||
nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit nsSVGLinearGradientFrame(nsStyleContext* aContext)
|
||||
: nsSVGGradientFrame(aContext, kClassID, mozilla::LayoutFrameType::SVGLinearGradient)
|
||||
: nsSVGGradientFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
public:
|
||||
|
@ -169,7 +169,7 @@ class nsSVGRadialGradientFrame : public nsSVGGradientFrame
|
|||
nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit nsSVGRadialGradientFrame(nsStyleContext* aContext)
|
||||
: nsSVGGradientFrame(aContext, kClassID, mozilla::LayoutFrameType::SVGRadialGradient)
|
||||
: nsSVGGradientFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
public:
|
||||
|
|
|
@ -59,7 +59,7 @@ class nsSVGImageFrame final
|
|||
|
||||
protected:
|
||||
explicit nsSVGImageFrame(nsStyleContext* aContext)
|
||||
: SVGGeometryFrame(aContext, kClassID, LayoutFrameType::SVGImage)
|
||||
: SVGGeometryFrame(aContext, kClassID)
|
||||
, mReflowCallbackPosted(false)
|
||||
, mForceSyncDecoding(false)
|
||||
{
|
||||
|
|
|
@ -21,8 +21,7 @@ class nsSVGInnerSVGFrame final
|
|||
NS_NewSVGInnerSVGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit nsSVGInnerSVGFrame(nsStyleContext* aContext)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID,
|
||||
mozilla::LayoutFrameType::SVGInnerSVG)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class nsSVGMarkerFrame final : public nsSVGContainerFrame
|
|||
NS_NewSVGMarkerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit nsSVGMarkerFrame(nsStyleContext* aContext)
|
||||
: nsSVGContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::SVGMarker)
|
||||
: nsSVGContainerFrame(aContext, kClassID)
|
||||
, mMarkedFrame(nullptr)
|
||||
, mInUse(false)
|
||||
, mInUse2(false)
|
||||
|
@ -141,8 +141,7 @@ class nsSVGMarkerAnonChildFrame final : public nsSVGDisplayContainerFrame
|
|||
nsStyleContext* aContext);
|
||||
|
||||
explicit nsSVGMarkerAnonChildFrame(nsStyleContext* aContext)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID,
|
||||
mozilla::LayoutFrameType::SVGMarkerAnonChild)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
public:
|
||||
|
|
|
@ -42,7 +42,7 @@ class nsSVGMaskFrame final : public nsSVGContainerFrame
|
|||
|
||||
protected:
|
||||
explicit nsSVGMaskFrame(nsStyleContext* aContext)
|
||||
: nsSVGContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::SVGMask)
|
||||
: nsSVGContainerFrame(aContext, kClassID)
|
||||
, mInUse(false)
|
||||
{
|
||||
AddStateBits(NS_FRAME_IS_NONDISPLAY);
|
||||
|
|
|
@ -65,7 +65,7 @@ NS_NewSVGOuterSVGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
NS_IMPL_FRAMEARENA_HELPERS(nsSVGOuterSVGFrame)
|
||||
|
||||
nsSVGOuterSVGFrame::nsSVGOuterSVGFrame(nsStyleContext* aContext)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID, LayoutFrameType::SVGOuterSVG)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID)
|
||||
, mCallingReflowSVG(false)
|
||||
, mFullZoom(aContext->PresContext()->GetFullZoom())
|
||||
, mViewportInitialized(false)
|
||||
|
|
|
@ -233,8 +233,7 @@ class nsSVGOuterSVGAnonChildFrame final : public nsSVGDisplayContainerFrame
|
|||
nsStyleContext* aContext);
|
||||
|
||||
explicit nsSVGOuterSVGAnonChildFrame(nsStyleContext* aContext)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID,
|
||||
mozilla::LayoutFrameType::SVGOuterSVGAnonChild)
|
||||
: nsSVGDisplayContainerFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
public:
|
||||
|
|
|
@ -57,9 +57,8 @@ class nsSVGPaintServerFrame : public nsSVGContainerFrame
|
|||
protected:
|
||||
typedef mozilla::gfx::DrawTarget DrawTarget;
|
||||
|
||||
explicit nsSVGPaintServerFrame(nsStyleContext* aContext, ClassID aID,
|
||||
mozilla::LayoutFrameType aType)
|
||||
: nsSVGContainerFrame(aContext, aID, aType)
|
||||
nsSVGPaintServerFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsSVGContainerFrame(aContext, aID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_IS_NONDISPLAY);
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ using namespace mozilla::image;
|
|||
// Implementation
|
||||
|
||||
nsSVGPatternFrame::nsSVGPatternFrame(nsStyleContext* aContext)
|
||||
: nsSVGPaintServerFrame(aContext, kClassID, LayoutFrameType::SVGPattern)
|
||||
: nsSVGPaintServerFrame(aContext, kClassID)
|
||||
, mSource(nullptr)
|
||||
, mLoopFlag(false)
|
||||
, mNoHRefURI(false)
|
||||
|
|
|
@ -20,7 +20,7 @@ class nsSVGStopFrame : public nsFrame
|
|||
NS_NewSVGStopFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit nsSVGStopFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext, kClassID, LayoutFrameType::SVGStop)
|
||||
: nsFrame(aContext, kClassID)
|
||||
{
|
||||
AddStateBits(NS_FRAME_IS_NONDISPLAY);
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ class nsSVGSwitchFrame final : public nsSVGGFrame
|
|||
NS_NewSVGSwitchFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
protected:
|
||||
explicit nsSVGSwitchFrame(nsStyleContext* aContext)
|
||||
: nsSVGGFrame(aContext, kClassID, LayoutFrameType::SVGSwitch)
|
||||
: nsSVGGFrame(aContext, kClassID)
|
||||
{}
|
||||
|
||||
public:
|
||||
|
|
|
@ -21,7 +21,7 @@ class nsSVGUseFrame final
|
|||
|
||||
protected:
|
||||
explicit nsSVGUseFrame(nsStyleContext* aContext)
|
||||
: nsSVGGFrame(aContext, kClassID, LayoutFrameType::SVGUse)
|
||||
: nsSVGGFrame(aContext, kClassID)
|
||||
, mHasValidDimensions(true)
|
||||
{}
|
||||
|
||||
|
|
|
@ -43,9 +43,8 @@ using namespace mozilla::image;
|
|||
|
||||
nsTableCellFrame::nsTableCellFrame(nsStyleContext* aContext,
|
||||
nsTableFrame* aTableFrame,
|
||||
ClassID aID,
|
||||
LayoutFrameType aType)
|
||||
: nsContainerFrame(aContext, aID, aType)
|
||||
ClassID aID)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
, mDesiredSize(aTableFrame->GetWritingMode())
|
||||
{
|
||||
mColIndex = 0;
|
||||
|
@ -1087,7 +1086,7 @@ nsTableCellFrame::GetFrameName(nsAString& aResult) const
|
|||
|
||||
nsBCTableCellFrame::nsBCTableCellFrame(nsStyleContext* aContext,
|
||||
nsTableFrame* aTableFrame)
|
||||
: nsTableCellFrame(aContext, aTableFrame, kClassID, LayoutFrameType::BCTableCell)
|
||||
: nsTableCellFrame(aContext, aTableFrame, kClassID)
|
||||
{
|
||||
mBStartBorder = mIEndBorder = mBEndBorder = mIStartBorder = 0;
|
||||
}
|
||||
|
|
|
@ -37,6 +37,13 @@ class nsTableCellFrame : public nsContainerFrame,
|
|||
typedef mozilla::gfx::DrawTarget DrawTarget;
|
||||
typedef mozilla::image::DrawResult DrawResult;
|
||||
|
||||
friend nsTableCellFrame* NS_NewTableCellFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext,
|
||||
nsTableFrame* aTableFrame);
|
||||
|
||||
nsTableCellFrame(nsStyleContext* aContext, nsTableFrame* aTableFrame)
|
||||
: nsTableCellFrame(aContext, aTableFrame, kClassID) {}
|
||||
|
||||
protected:
|
||||
typedef mozilla::WritingMode WritingMode;
|
||||
typedef mozilla::LogicalSide LogicalSide;
|
||||
|
@ -46,16 +53,6 @@ public:
|
|||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS(nsTableCellFrame)
|
||||
|
||||
// default constructor supplied by the compiler
|
||||
|
||||
nsTableCellFrame(nsStyleContext* aContext, nsTableFrame* aTableFrame,
|
||||
ClassID aID = kClassID)
|
||||
: nsTableCellFrame(aContext, aTableFrame, aID,
|
||||
mozilla::LayoutFrameType::TableCell)
|
||||
{}
|
||||
|
||||
~nsTableCellFrame();
|
||||
|
||||
nsTableRowFrame* GetTableRowFrame() const
|
||||
{
|
||||
nsIFrame* parent = GetParent();
|
||||
|
@ -232,10 +229,9 @@ public:
|
|||
virtual void InvalidateFrameForRemoval() override { InvalidateFrameSubtree(); }
|
||||
|
||||
protected:
|
||||
nsTableCellFrame(nsStyleContext* aContext,
|
||||
nsTableFrame* aTableFrame,
|
||||
ClassID aID,
|
||||
mozilla::LayoutFrameType aType);
|
||||
nsTableCellFrame(nsStyleContext* aContext, nsTableFrame* aTableFrame,
|
||||
ClassID aID);
|
||||
~nsTableCellFrame();
|
||||
|
||||
virtual LogicalSides
|
||||
GetLogicalSkipSides(const ReflowInput* aReflowInput = nullptr) const override;
|
||||
|
|
|
@ -24,7 +24,7 @@ using namespace mozilla;
|
|||
using namespace mozilla;
|
||||
|
||||
nsTableColFrame::nsTableColFrame(nsStyleContext* aContext)
|
||||
: nsSplittableFrame(aContext, kClassID, LayoutFrameType::TableCol)
|
||||
: nsSplittableFrame(aContext, kClassID)
|
||||
, mMinCoord(0)
|
||||
, mPrefCoord(0)
|
||||
, mSpanMinCoord(0)
|
||||
|
|
|
@ -221,7 +221,7 @@ protected:
|
|||
};
|
||||
|
||||
inline nsTableColGroupFrame::nsTableColGroupFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, mozilla::LayoutFrameType::TableColGroup)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
, mColCount(0)
|
||||
, mStartColIndex(0)
|
||||
{
|
||||
|
|
|
@ -147,7 +147,7 @@ nsTableFrame::GetParentStyleContext(nsIFrame** aProviderFrame) const
|
|||
}
|
||||
|
||||
nsTableFrame::nsTableFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsContainerFrame(aContext, aID, LayoutFrameType::Table)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
, mCellMap(nullptr)
|
||||
, mTableLayoutStrategy(nullptr)
|
||||
{
|
||||
|
|
|
@ -130,7 +130,7 @@ NS_QUERYFRAME_HEAD(nsTableRowFrame)
|
|||
NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
|
||||
|
||||
nsTableRowFrame::nsTableRowFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsContainerFrame(aContext, aID, LayoutFrameType::TableRow)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
, mContentBSize(0)
|
||||
, mStylePctBSize(0)
|
||||
, mStyleFixedBSize(0)
|
||||
|
|
|
@ -54,7 +54,7 @@ struct TableRowGroupReflowInput {
|
|||
} // namespace mozilla
|
||||
|
||||
nsTableRowGroupFrame::nsTableRowGroupFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext, kClassID, LayoutFrameType::TableRowGroup)
|
||||
: nsContainerFrame(aContext, kClassID)
|
||||
{
|
||||
SetRepeatable(false);
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ nsTableWrapperFrame::GetLogicalBaseline(WritingMode aWritingMode) const
|
|||
}
|
||||
|
||||
nsTableWrapperFrame::nsTableWrapperFrame(nsStyleContext* aContext, ClassID aID)
|
||||
: nsContainerFrame(aContext, aID, LayoutFrameType::TableWrapper)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -176,8 +176,8 @@ nsBox::EndXULLayout(nsBoxLayoutState& aState)
|
|||
bool nsBox::gGotTheme = false;
|
||||
nsITheme* nsBox::gTheme = nullptr;
|
||||
|
||||
nsBox::nsBox(ClassID aID, LayoutFrameType aType)
|
||||
: nsIFrame(aID, aType)
|
||||
nsBox::nsBox(ClassID aID)
|
||||
: nsIFrame(aID)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsBox);
|
||||
//mX = 0;
|
||||
|
|
|
@ -50,7 +50,7 @@ public:
|
|||
void PropagateDebug(nsBoxLayoutState& aState);
|
||||
#endif
|
||||
|
||||
nsBox(ClassID aID, mozilla::LayoutFrameType);
|
||||
nsBox(ClassID aID);
|
||||
virtual ~nsBox();
|
||||
|
||||
/**
|
||||
|
|
|
@ -118,10 +118,9 @@ NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
|
|||
|
||||
nsBoxFrame::nsBoxFrame(nsStyleContext* aContext,
|
||||
ClassID aID,
|
||||
LayoutFrameType aType,
|
||||
bool aIsRoot,
|
||||
nsBoxLayout* aLayoutManager)
|
||||
: nsContainerFrame(aContext, aID, aType)
|
||||
: nsContainerFrame(aContext, aID)
|
||||
, mFlex(0)
|
||||
, mAscent(0)
|
||||
{
|
||||
|
|
|
@ -138,18 +138,6 @@ public:
|
|||
|
||||
virtual bool HonorPrintBackgroundSettings() override;
|
||||
|
||||
virtual ~nsBoxFrame();
|
||||
|
||||
explicit nsBoxFrame(nsStyleContext* aContext,
|
||||
ClassID aID = kClassID,
|
||||
bool aIsRoot = false,
|
||||
nsBoxLayout* aLayoutManager = nullptr)
|
||||
: nsBoxFrame(aContext, aID,
|
||||
mozilla::LayoutFrameType::Box,
|
||||
aIsRoot,
|
||||
aLayoutManager)
|
||||
{}
|
||||
|
||||
// virtual so nsStackFrame, nsButtonBoxFrame, nsSliderFrame and nsMenuFrame
|
||||
// can override it
|
||||
virtual void BuildDisplayListForChildren(nsDisplayListBuilder* aBuilder,
|
||||
|
@ -183,12 +171,13 @@ public:
|
|||
*/
|
||||
virtual bool SupportsOrdinalsInChildren();
|
||||
|
||||
private:
|
||||
explicit nsBoxFrame(nsStyleContext* aContext)
|
||||
: nsBoxFrame(aContext, kClassID, false, nullptr) {}
|
||||
protected:
|
||||
nsBoxFrame(nsStyleContext* aContext,
|
||||
ClassID aID,
|
||||
mozilla::LayoutFrameType aType,
|
||||
bool aIsRoot = false,
|
||||
nsBoxFrame(nsStyleContext* aContext, ClassID aID, bool aIsRoot = false,
|
||||
nsBoxLayout* aLayoutManager = nullptr);
|
||||
virtual ~nsBoxFrame();
|
||||
|
||||
#ifdef DEBUG_LAYOUT
|
||||
virtual void GetBoxName(nsAutoString& aName) override;
|
||||
|
|
|
@ -44,7 +44,7 @@ NS_QUERYFRAME_HEAD(nsDeckFrame)
|
|||
NS_QUERYFRAME_TAIL_INHERITING(nsBoxFrame)
|
||||
|
||||
nsDeckFrame::nsDeckFrame(nsStyleContext* aContext)
|
||||
: nsBoxFrame(aContext, kClassID, LayoutFrameType::Deck)
|
||||
: nsBoxFrame(aContext, kClassID)
|
||||
, mIndex(0)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout;
|
||||
|
|
|
@ -151,7 +151,7 @@ nsImageBoxFrame::AttributeChanged(int32_t aNameSpaceID,
|
|||
}
|
||||
|
||||
nsImageBoxFrame::nsImageBoxFrame(nsStyleContext* aContext)
|
||||
: nsLeafBoxFrame(aContext, kClassID, LayoutFrameType::ImageBox)
|
||||
: nsLeafBoxFrame(aContext, kClassID)
|
||||
, mIntrinsicSize(0, 0)
|
||||
, mLoadFlags(nsIRequest::LOAD_NORMAL)
|
||||
, mRequestRegistered(false)
|
||||
|
|
|
@ -40,11 +40,6 @@ NS_NewLeafBoxFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
|||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsLeafBoxFrame)
|
||||
|
||||
nsLeafBoxFrame::nsLeafBoxFrame(nsStyleContext* aContext, ClassID aID, LayoutFrameType aType)
|
||||
: nsLeafFrame(aContext, aID, aType)
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef DEBUG_LAYOUT
|
||||
void
|
||||
nsLeafBoxFrame::GetBoxName(nsAutoString& aName)
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче