/src/mozilla-central/layout/svg/nsSVGSymbolFrame.cpp
Line | Count | Source (jump to first uncovered line) |
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/. */ |
6 | | |
7 | | // Main header first: |
8 | | #include "nsSVGSymbolFrame.h" |
9 | | |
10 | | nsIFrame* |
11 | | NS_NewSVGSymbolFrame(nsIPresShell* aPresShell, ComputedStyle* aStyle) |
12 | 0 | { |
13 | 0 | return new (aPresShell) nsSVGSymbolFrame(aStyle); |
14 | 0 | } |
15 | | |
16 | | NS_IMPL_FRAMEARENA_HELPERS(nsSVGSymbolFrame) |
17 | | |
18 | | //---------------------------------------------------------------------- |
19 | | // nsIFrame methods |
20 | | |
21 | 0 | NS_QUERYFRAME_HEAD(nsSVGSymbolFrame) |
22 | 0 | NS_QUERYFRAME_ENTRY(nsSVGSymbolFrame) |
23 | 0 | NS_QUERYFRAME_TAIL_INHERITING(nsSVGViewportFrame) |
24 | | |
25 | | #ifdef DEBUG |
26 | | void |
27 | | nsSVGSymbolFrame::Init(nsIContent* aContent, |
28 | | nsContainerFrame* aParent, |
29 | | nsIFrame* aPrevInFlow) |
30 | | { |
31 | | NS_ASSERTION(aContent->IsSVGElement(nsGkAtoms::symbol), |
32 | | "Content is not an SVG 'symbol' element!"); |
33 | | |
34 | | nsSVGViewportFrame::Init(aContent, aParent, aPrevInFlow); |
35 | | } |
36 | | #endif /* DEBUG */ |