Bug 1264837 Part 17 - Remove nsSVGAFrameBase.
MozReview-Commit-ID: 365bVyNBXIL
--- a/layout/svg/nsSVGAFrame.cpp
+++ b/layout/svg/nsSVGAFrame.cpp
@@ -8,25 +8,23 @@
#include "mozilla/dom/SVGAElement.h"
#include "nsSVGContainerFrame.h"
#include "nsSVGIntegrationUtils.h"
#include "nsSVGUtils.h"
#include "SVGLengthList.h"
using namespace mozilla;
-typedef nsSVGDisplayContainerFrame nsSVGAFrameBase;
-
-class nsSVGAFrame : public nsSVGAFrameBase
+class nsSVGAFrame : public nsSVGDisplayContainerFrame
{
friend nsIFrame*
NS_NewSVGAFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
protected:
- explicit nsSVGAFrame(nsStyleContext* aContext) :
- nsSVGAFrameBase(aContext) {}
+ explicit nsSVGAFrame(nsStyleContext* aContext)
+ : nsSVGDisplayContainerFrame(aContext) {}
public:
NS_DECL_FRAMEARENA_HELPERS
#ifdef DEBUG
virtual void Init(nsIContent* aContent,
nsContainerFrame* aParent,
nsIFrame* aPrevInFlow) override;
@@ -78,17 +76,17 @@ void
nsSVGAFrame::Init(nsIContent* aContent,
nsContainerFrame* aParent,
nsIFrame* aPrevInFlow)
{
NS_ASSERTION(aContent->IsSVGElement(nsGkAtoms::a),
"Trying to construct an SVGAFrame for a "
"content element that doesn't support the right interfaces");
- nsSVGAFrameBase::Init(aContent, aParent, aPrevInFlow);
+ nsSVGDisplayContainerFrame::Init(aContent, aParent, aPrevInFlow);
}
#endif /* DEBUG */
nsresult
nsSVGAFrame::AttributeChanged(int32_t aNameSpaceID,
nsIAtom* aAttribute,
int32_t aModType)
{
@@ -119,17 +117,17 @@ nsSVGAFrame::NotifySVGChanged(uint32_t a
MOZ_ASSERT(aFlags & (TRANSFORM_CHANGED | COORD_CONTEXT_CHANGED),
"Invalidation logic may need adjusting");
if (aFlags & TRANSFORM_CHANGED) {
// make sure our cached transform matrix gets (lazily) updated
mCanvasTM = nullptr;
}
- nsSVGAFrameBase::NotifySVGChanged(aFlags);
+ nsSVGDisplayContainerFrame::NotifySVGChanged(aFlags);
}
//----------------------------------------------------------------------
// nsSVGContainerFrame methods:
gfxMatrix
nsSVGAFrame::GetCanvasTM()
{