Bug 1264837 Part 38 - Remove nsSVGSwitchFrameBase.
MozReview-Commit-ID: K7LxDjF7XHY
--- a/layout/svg/nsSVGSwitchFrame.cpp
+++ b/layout/svg/nsSVGSwitchFrame.cpp
@@ -7,25 +7,23 @@
#include "gfxRect.h"
#include "nsSVGEffects.h"
#include "nsSVGGFrame.h"
#include "mozilla/dom/SVGSwitchElement.h"
#include "nsSVGUtils.h"
using namespace mozilla::gfx;
-typedef nsSVGGFrame nsSVGSwitchFrameBase;
-
-class nsSVGSwitchFrame : public nsSVGSwitchFrameBase
+class nsSVGSwitchFrame : public nsSVGGFrame
{
friend nsIFrame*
NS_NewSVGSwitchFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
protected:
- explicit nsSVGSwitchFrame(nsStyleContext* aContext) :
- nsSVGSwitchFrameBase(aContext) {}
+ explicit nsSVGSwitchFrame(nsStyleContext* aContext)
+ : nsSVGGFrame(aContext) {}
public:
NS_DECL_FRAMEARENA_HELPERS
#ifdef DEBUG
virtual void Init(nsIContent* aContent,
nsContainerFrame* aParent,
nsIFrame* aPrevInFlow) override;
@@ -78,17 +76,17 @@ NS_IMPL_FRAMEARENA_HELPERS(nsSVGSwitchFr
void
nsSVGSwitchFrame::Init(nsIContent* aContent,
nsContainerFrame* aParent,
nsIFrame* aPrevInFlow)
{
NS_ASSERTION(aContent->IsSVGElement(nsGkAtoms::svgSwitch),
"Content is not an SVG switch");
- nsSVGSwitchFrameBase::Init(aContent, aParent, aPrevInFlow);
+ nsSVGGFrame::Init(aContent, aParent, aPrevInFlow);
}
#endif /* DEBUG */
nsIAtom *
nsSVGSwitchFrame::GetType() const
{
return nsGkAtoms::svgSwitchFrame;
}