Bug 1345202 part 3: Add a few more required 'using' and #include statements in layout/svg. r=TYLin

Specifically:
 - SVGGeometryFrame.cpp has several uses the type SVGGeometryElement which is
   really mozilla::dom::SVGGeometryElement. So I'm adding a 'using' decl for
   the 'mozilla::dom' namespace (and I'm dropping a now-unnecessary explicit
   dom:: prefix from another type there).
 - SVGImageContext.cpp calls several functions on nsIFrame (PresContext() &
   StyleSVG() at least). So I'm adding an #include for nsIFrame.h.
 - nsSVGMarkerFrame.cpp uses the type SVGGeometryFrame, which is really
   mozilla::SVGGeometryFrame. So I'm adding a 'using' decl for
   the 'mozilla' namespace.

MozReview-Commit-ID: AlCrocHhPtr

--HG--
extra : rebase_source : 8fe64f35179954813c00188587e0d7724f17791c
This commit is contained in:
Daniel Holbert 2017-03-07 20:10:29 -08:00
Родитель 2fcc3e7e4f
Коммит 48bd77677c
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -30,6 +30,7 @@
#include "SVGGraphicsElement.h"
using namespace mozilla;
using namespace mozilla::dom;
using namespace mozilla::gfx;
using namespace mozilla::image;
@ -707,7 +708,7 @@ SVGGeometryFrame::GetCanvasTM()
NS_ASSERTION(GetParent(), "null parent");
nsSVGContainerFrame *parent = static_cast<nsSVGContainerFrame*>(GetParent());
dom::SVGGraphicsElement *content = static_cast<dom::SVGGraphicsElement*>(mContent);
SVGGraphicsElement *content = static_cast<SVGGraphicsElement*>(mContent);
return content->PrependLocalTransformsTo(parent->GetCanvasTM());
}

Просмотреть файл

@ -10,6 +10,7 @@
// Keep others in (case-insensitive) order:
#include "gfxUtils.h"
#include "mozilla/Preferences.h"
#include "nsIFrame.h"
#include "nsPresContext.h"
namespace mozilla {