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/. */
10 #include "mozilla/Attributes.h"
11 #include "gfxMatrix.h"
12 #include "nsAutoPtr.h"
13 #include "nsSVGContainerFrame.h"
17 } // namespace mozilla
19 class nsSVGGFrame
: public nsSVGDisplayContainerFrame
{
20 friend nsIFrame
* NS_NewSVGGFrame(mozilla::PresShell
* aPresShell
,
21 ComputedStyle
* aStyle
);
22 explicit nsSVGGFrame(ComputedStyle
* aStyle
, nsPresContext
* aPresContext
)
23 : nsSVGGFrame(aStyle
, aPresContext
, kClassID
) {}
26 nsSVGGFrame(ComputedStyle
* aStyle
, nsPresContext
* aPresContext
,
27 nsIFrame::ClassID aID
)
28 : nsSVGDisplayContainerFrame(aStyle
, aPresContext
, aID
) {}
31 NS_DECL_FRAMEARENA_HELPERS(nsSVGGFrame
)
34 virtual void Init(nsIContent
* aContent
, nsContainerFrame
* aParent
,
35 nsIFrame
* aPrevInFlow
) override
;
38 #ifdef DEBUG_FRAME_DUMP
39 virtual nsresult
GetFrameName(nsAString
& aResult
) const override
{
40 return MakeFrameName(NS_LITERAL_STRING("SVGG"), aResult
);
44 // nsIFrame interface:
45 virtual nsresult
AttributeChanged(int32_t aNameSpaceID
, nsAtom
* aAttribute
,
46 int32_t aModType
) override
;