Bug 1568157 - Part 5: Move the NodePicker initialization into a getter. r=yulia
[gecko.git] / layout / svg / nsSVGGFrame.h
blob6b1b2cc7b99fe44aa3e815a6f8b2e519965e8d51
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 NSSVGGFRAME_H
8 #define NSSVGGFRAME_H
10 #include "mozilla/Attributes.h"
11 #include "gfxMatrix.h"
12 #include "nsAutoPtr.h"
13 #include "nsSVGContainerFrame.h"
15 namespace mozilla {
16 class PresShell;
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) {}
25 protected:
26 nsSVGGFrame(ComputedStyle* aStyle, nsPresContext* aPresContext,
27 nsIFrame::ClassID aID)
28 : nsSVGDisplayContainerFrame(aStyle, aPresContext, aID) {}
30 public:
31 NS_DECL_FRAMEARENA_HELPERS(nsSVGGFrame)
33 #ifdef DEBUG
34 virtual void Init(nsIContent* aContent, nsContainerFrame* aParent,
35 nsIFrame* aPrevInFlow) override;
36 #endif
38 #ifdef DEBUG_FRAME_DUMP
39 virtual nsresult GetFrameName(nsAString& aResult) const override {
40 return MakeFrameName(NS_LITERAL_STRING("SVGG"), aResult);
42 #endif
44 // nsIFrame interface:
45 virtual nsresult AttributeChanged(int32_t aNameSpaceID, nsAtom* aAttribute,
46 int32_t aModType) override;
49 #endif