no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / layout / svg / SVGGFrame.h
blob68e01ec8b961e5bb4970b8816a874ceec885aa85
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"
14 namespace mozilla {
15 class PresShell;
16 } // namespace mozilla
18 nsIFrame* NS_NewSVGGFrame(mozilla::PresShell* aPresShell,
19 mozilla::ComputedStyle* aStyle);
21 namespace mozilla {
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) {}
29 protected:
30 SVGGFrame(ComputedStyle* aStyle, nsPresContext* aPresContext,
31 nsIFrame::ClassID aID)
32 : SVGDisplayContainerFrame(aStyle, aPresContext, aID) {}
34 public:
35 NS_DECL_FRAMEARENA_HELPERS(SVGGFrame)
37 #ifdef DEBUG
38 void Init(nsIContent* aContent, nsContainerFrame* aParent,
39 nsIFrame* aPrevInFlow) override;
40 #endif
42 #ifdef DEBUG_FRAME_DUMP
43 nsresult GetFrameName(nsAString& aResult) const override {
44 return MakeFrameName(u"SVGG"_ns, aResult);
46 #endif
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_