Bug 1705289 Remove spurious mozMediaSource media track constraint from tests r=jib
[gecko.git] / layout / svg / SVGSymbolFrame.cpp
blob63cb31af5be1a1a84577a36cf42281c00b7defc5
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/. */
7 // Main header first:
8 #include "SVGSymbolFrame.h"
10 #include "mozilla/PresShell.h"
12 nsIFrame* NS_NewSVGSymbolFrame(mozilla::PresShell* aPresShell,
13 mozilla::ComputedStyle* aStyle) {
14 return new (aPresShell)
15 mozilla::SVGSymbolFrame(aStyle, aPresShell->GetPresContext());
18 namespace mozilla {
20 NS_IMPL_FRAMEARENA_HELPERS(SVGSymbolFrame)
22 //----------------------------------------------------------------------
23 // nsIFrame methods
25 NS_QUERYFRAME_HEAD(SVGSymbolFrame)
26 NS_QUERYFRAME_ENTRY(SVGSymbolFrame)
27 NS_QUERYFRAME_TAIL_INHERITING(SVGViewportFrame)
29 #ifdef DEBUG
30 void SVGSymbolFrame::Init(nsIContent* aContent, nsContainerFrame* aParent,
31 nsIFrame* aPrevInFlow) {
32 NS_ASSERTION(aContent->IsSVGElement(nsGkAtoms::symbol),
33 "Content is not an SVG 'symbol' element!");
35 SVGViewportFrame::Init(aContent, aParent, aPrevInFlow);
37 #endif /* DEBUG */
39 } // namespace mozilla