Bug 1264837 Part 19 - Remove nsSVGContainerFrameBase. r=dholbert

MozReview-Commit-ID: EPoMcv1GsnS

--HG--
extra : rebase_source : dcd4a223d50e5de8b92d779d35ad0461f35dbecd
This commit is contained in:
Ting-Yu Lin 2016-04-18 14:56:50 +08:00
parent 083eac991f
commit c85f7ff0eb
2 changed files with 5 additions and 7 deletions

View File

@ -20,7 +20,7 @@ using namespace mozilla;
NS_QUERYFRAME_HEAD(nsSVGContainerFrame)
NS_QUERYFRAME_ENTRY(nsSVGContainerFrame)
NS_QUERYFRAME_TAIL_INHERITING(nsSVGContainerFrameBase)
NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
NS_QUERYFRAME_HEAD(nsSVGDisplayContainerFrame)
NS_QUERYFRAME_ENTRY(nsSVGDisplayContainerFrame)
@ -78,7 +78,7 @@ nsSVGContainerFrame::UpdateOverflow()
// XXX It would have be better if the restyle request hadn't even happened.
return false;
}
return nsSVGContainerFrameBase::UpdateOverflow();
return nsContainerFrame::UpdateOverflow();
}
/**

View File

@ -23,8 +23,6 @@ class nsStyleContext;
struct nsRect;
typedef nsContainerFrame nsSVGContainerFrameBase;
/**
* Base class for SVG container frames. Frame sub-classes that do not
* display their contents directly (such as the frames for <marker> or
@ -37,13 +35,13 @@ typedef nsContainerFrame nsSVGContainerFrameBase;
* Do *not* blindly cast to SVG element types in this class's methods (see the
* warning comment for nsSVGDisplayContainerFrame below).
*/
class nsSVGContainerFrame : public nsSVGContainerFrameBase
class nsSVGContainerFrame : public nsContainerFrame
{
friend nsIFrame* NS_NewSVGContainerFrame(nsIPresShell* aPresShell,
nsStyleContext* aContext);
protected:
explicit nsSVGContainerFrame(nsStyleContext* aContext)
: nsSVGContainerFrameBase(aContext)
: nsContainerFrame(aContext)
{
AddStateBits(NS_FRAME_SVG_LAYOUT);
}
@ -80,7 +78,7 @@ public:
virtual bool IsFrameOfType(uint32_t aFlags) const override
{
return nsSVGContainerFrameBase::IsFrameOfType(
return nsContainerFrame::IsFrameOfType(
aFlags & ~(nsIFrame::eSVG | nsIFrame::eSVGContainer));
}