Bug 1345202 part 1: Add missing mozilla:: namespace prefixes in layout/svg/*.h. r?TYLin
These only build successfully (in unified mode) right now because they're lucky
enough to pick up a "using namespace mozilla;" declaration from a .cpp file
earlier in their unified compilation unit.
MozReview-Commit-ID: JylaTtjdSZu
--- a/layout/svg/nsSVGMarkerFrame.h
+++ b/layout/svg/nsSVGMarkerFrame.h
@@ -79,45 +79,45 @@ public:
nsGkAtoms::svgMarkerAnonChildFrame,
"Where is our anonymous child?");
return PrincipalChildList().FirstChild()->GetContentInsertionFrame();
}
// nsSVGMarkerFrame methods:
nsresult PaintMark(gfxContext& aContext,
const gfxMatrix& aToMarkedFrameUserSpace,
- SVGGeometryFrame *aMarkedFrame,
+ mozilla::SVGGeometryFrame *aMarkedFrame,
nsSVGMark *aMark,
float aStrokeWidth);
SVGBBox GetMarkBBoxContribution(const Matrix &aToBBoxUserspace,
uint32_t aFlags,
- SVGGeometryFrame *aMarkedFrame,
+ mozilla::SVGGeometryFrame *aMarkedFrame,
const nsSVGMark *aMark,
float aStrokeWidth);
private:
// stuff needed for callback
- SVGGeometryFrame *mMarkedFrame;
+ mozilla::SVGGeometryFrame *mMarkedFrame;
float mStrokeWidth, mX, mY, mAutoAngle;
bool mIsStart; // whether the callback is for a marker-start marker
// nsSVGContainerFrame methods:
virtual gfxMatrix GetCanvasTM() override;
// A helper class to allow us to paint markers safely. The helper
// automatically sets and clears the mInUse flag on the marker frame (to
// prevent nasty reference loops) as well as the reference to the marked
// frame and its coordinate context. It's easy to mess this up
// and break things, so this helper makes the code far more robust.
class MOZ_RAII AutoMarkerReferencer
{
public:
AutoMarkerReferencer(nsSVGMarkerFrame *aFrame,
- SVGGeometryFrame *aMarkedFrame
+ mozilla::SVGGeometryFrame *aMarkedFrame
MOZ_GUARD_OBJECT_NOTIFIER_PARAM);
~AutoMarkerReferencer();
private:
nsSVGMarkerFrame *mFrame;
MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
};
// nsSVGMarkerFrame methods:
--- a/layout/svg/nsSVGPatternFrame.h
+++ b/layout/svg/nsSVGPatternFrame.h
@@ -137,17 +137,17 @@ protected:
const gfxRect &callerBBox,
const Matrix &callerCTM,
nsIFrame *aTarget);
private:
// this is a *temporary* reference to the frame of the element currently
// referencing our pattern. This must be temporary because different
// referencing frames will all reference this one frame
- SVGGeometryFrame *mSource;
+ mozilla::SVGGeometryFrame *mSource;
nsAutoPtr<gfxMatrix> mCTM;
protected:
// This flag is used to detect loops in xlink:href processing
bool mLoopFlag;
bool mNoHRefURI;
};