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