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 : // Main header first:
7 : #include "nsSVGInnerSVGFrame.h"
8 :
9 : nsIFrame*
10 0 : NS_NewSVGInnerSVGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
11 : {
12 0 : return new (aPresShell) nsSVGInnerSVGFrame(aContext);
13 : }
14 :
15 0 : NS_IMPL_FRAMEARENA_HELPERS(nsSVGInnerSVGFrame)
16 :
17 : //----------------------------------------------------------------------
18 : // nsIFrame methods
19 :
20 0 : NS_QUERYFRAME_HEAD(nsSVGInnerSVGFrame)
21 0 : NS_QUERYFRAME_ENTRY(nsSVGInnerSVGFrame)
22 0 : NS_QUERYFRAME_ENTRY(nsISVGSVGFrame)
23 0 : NS_QUERYFRAME_TAIL_INHERITING(nsSVGViewportFrame)
24 :
25 : #ifdef DEBUG
26 : void
27 0 : nsSVGInnerSVGFrame::Init(nsIContent* aContent,
28 : nsContainerFrame* aParent,
29 : nsIFrame* aPrevInFlow)
30 : {
31 0 : NS_ASSERTION(aContent->IsSVGElement(nsGkAtoms::svg),
32 : "Content is not an SVG 'svg' element!");
33 :
34 0 : nsSVGViewportFrame::Init(aContent, aParent, aPrevInFlow);
35 0 : }
36 : #endif /* DEBUG */
|