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