1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10 #include "nsSVGContainerFrame.h"
12 typedef nsSVGDisplayContainerFrame nsSVGGFrameBase
;
14 class nsSVGGFrame
: public nsSVGGFrameBase
17 NS_NewSVGGFrame(nsIPresShell
* aPresShell
, nsStyleContext
* aContext
);
19 nsSVGGFrame(nsStyleContext
* aContext
) :
20 nsSVGGFrameBase(aContext
) {}
23 NS_DECL_FRAMEARENA_HELPERS
26 virtual void Init(nsIContent
* aContent
,
28 nsIFrame
* aPrevInFlow
) MOZ_OVERRIDE
;
32 * Get the "type" of the frame
34 * @see nsGkAtoms::svgGFrame
36 virtual nsIAtom
* GetType() const;
39 NS_IMETHOD
GetFrameName(nsAString
& aResult
) const
41 return MakeFrameName(NS_LITERAL_STRING("SVGG"), aResult
);
45 // nsIFrame interface:
46 NS_IMETHOD
AttributeChanged(int32_t aNameSpaceID
,
50 // nsISVGChildFrame interface:
51 virtual void NotifySVGChanged(uint32_t aFlags
);
53 // nsSVGContainerFrame methods:
54 virtual gfxMatrix
GetCanvasTM(uint32_t aFor
);
56 nsAutoPtr
<gfxMatrix
> mCanvasTM
;