Bug 1568157 - Part 5: Move the NodePicker initialization into a getter. r=yulia
[gecko.git] / layout / svg / nsSVGInnerSVGFrame.h
blobdf0584fdd7d084b790fd6eeafcb70d2480da07ae
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 __NS_SVGINNERSVGFRAME_H__
8 #define __NS_SVGINNERSVGFRAME_H__
10 #include "nsSVGViewportFrame.h"
12 namespace mozilla {
13 class PresShell;
14 } // namespace mozilla
16 class nsSVGInnerSVGFrame final : public nsSVGViewportFrame {
17 friend nsIFrame* NS_NewSVGInnerSVGFrame(mozilla::PresShell* aPresShell,
18 ComputedStyle* aStyle);
20 protected:
21 explicit nsSVGInnerSVGFrame(ComputedStyle* aStyle,
22 nsPresContext* aPresContext)
23 : nsSVGViewportFrame(aStyle, aPresContext, kClassID) {}
25 public:
26 NS_DECL_QUERYFRAME
27 NS_DECL_FRAMEARENA_HELPERS(nsSVGInnerSVGFrame)
29 #ifdef DEBUG
30 virtual void Init(nsIContent* aContent, nsContainerFrame* aParent,
31 nsIFrame* aPrevInFlow) override;
32 #endif
34 #ifdef DEBUG_FRAME_DUMP
35 virtual nsresult GetFrameName(nsAString& aResult) const override {
36 return MakeFrameName(NS_LITERAL_STRING("SVGInnerSVG"), aResult);
38 #endif
41 #endif