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"
14 } // namespace mozilla
16 class nsSVGInnerSVGFrame final
: public nsSVGViewportFrame
{
17 friend nsIFrame
* NS_NewSVGInnerSVGFrame(mozilla::PresShell
* aPresShell
,
18 ComputedStyle
* aStyle
);
21 explicit nsSVGInnerSVGFrame(ComputedStyle
* aStyle
,
22 nsPresContext
* aPresContext
)
23 : nsSVGViewportFrame(aStyle
, aPresContext
, kClassID
) {}
27 NS_DECL_FRAMEARENA_HELPERS(nsSVGInnerSVGFrame
)
30 virtual void Init(nsIContent
* aContent
, nsContainerFrame
* aParent
,
31 nsIFrame
* aPrevInFlow
) override
;
34 #ifdef DEBUG_FRAME_DUMP
35 virtual nsresult
GetFrameName(nsAString
& aResult
) const override
{
36 return MakeFrameName(NS_LITERAL_STRING("SVGInnerSVG"), aResult
);