Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : #ifndef __NS_SVGINNERSVGFRAME_H__
7 : #define __NS_SVGINNERSVGFRAME_H__
8 :
9 : #include "nsSVGViewportFrame.h"
10 :
11 0 : class nsSVGInnerSVGFrame final
12 : : public nsSVGViewportFrame
13 : {
14 : friend nsIFrame*
15 : NS_NewSVGInnerSVGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
16 : protected:
17 0 : explicit nsSVGInnerSVGFrame(nsStyleContext* aContext)
18 0 : : nsSVGViewportFrame(aContext, kClassID)
19 : {
20 0 : }
21 :
22 : public:
23 : NS_DECL_QUERYFRAME
24 0 : NS_DECL_FRAMEARENA_HELPERS(nsSVGInnerSVGFrame)
25 :
26 : #ifdef DEBUG
27 : virtual void Init(nsIContent* aContent,
28 : nsContainerFrame* aParent,
29 : nsIFrame* aPrevInFlow) override;
30 : #endif
31 :
32 : #ifdef DEBUG_FRAME_DUMP
33 0 : virtual nsresult GetFrameName(nsAString& aResult) const override
34 : {
35 0 : return MakeFrameName(NS_LITERAL_STRING("SVGInnerSVG"), aResult);
36 : }
37 : #endif
38 : };
39 :
40 : #endif
41 :
|