1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef LAYOUT_SVG_SVGGFRAME_H_
8 #define LAYOUT_SVG_SVGGFRAME_H_
10 #include "mozilla/Attributes.h"
11 #include "mozilla/SVGContainerFrame.h"
12 #include "gfxMatrix.h"
16 } // namespace mozilla
18 nsIFrame
* NS_NewSVGGFrame(mozilla::PresShell
* aPresShell
,
19 mozilla::ComputedStyle
* aStyle
);
23 class SVGGFrame
: public SVGDisplayContainerFrame
{
24 friend nsIFrame
* ::NS_NewSVGGFrame(mozilla::PresShell
* aPresShell
,
25 mozilla::ComputedStyle
* aStyle
);
26 explicit SVGGFrame(ComputedStyle
* aStyle
, nsPresContext
* aPresContext
)
27 : SVGGFrame(aStyle
, aPresContext
, kClassID
) {}
30 SVGGFrame(ComputedStyle
* aStyle
, nsPresContext
* aPresContext
,
31 nsIFrame::ClassID aID
)
32 : SVGDisplayContainerFrame(aStyle
, aPresContext
, aID
) {}
35 NS_DECL_FRAMEARENA_HELPERS(SVGGFrame
)
38 void Init(nsIContent
* aContent
, nsContainerFrame
* aParent
,
39 nsIFrame
* aPrevInFlow
) override
;
42 #ifdef DEBUG_FRAME_DUMP
43 nsresult
GetFrameName(nsAString
& aResult
) const override
{
44 return MakeFrameName(u
"SVGG"_ns
, aResult
);
48 // nsIFrame interface:
49 nsresult
AttributeChanged(int32_t aNameSpaceID
, nsAtom
* aAttribute
,
50 int32_t aModType
) override
;
53 } // namespace mozilla
55 #endif // LAYOUT_SVG_SVGGFRAME_H_