2017-10-27 20:33:53 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2017-06-14 16:40:59 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
// Main header first:
|
|
|
|
#include "nsSVGSymbolFrame.h"
|
|
|
|
|
2019-04-16 10:24:49 +03:00
|
|
|
#include "mozilla/PresShell.h"
|
|
|
|
|
2018-11-13 01:20:52 +03:00
|
|
|
using namespace mozilla;
|
|
|
|
|
2019-04-16 10:24:49 +03:00
|
|
|
nsIFrame* NS_NewSVGSymbolFrame(PresShell* aPresShell, ComputedStyle* aStyle) {
|
2019-02-05 19:45:54 +03:00
|
|
|
return new (aPresShell)
|
|
|
|
nsSVGSymbolFrame(aStyle, aPresShell->GetPresContext());
|
2017-06-14 16:40:59 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsSVGSymbolFrame)
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIFrame methods
|
|
|
|
|
|
|
|
NS_QUERYFRAME_HEAD(nsSVGSymbolFrame)
|
2018-12-07 23:00:18 +03:00
|
|
|
NS_QUERYFRAME_ENTRY(nsSVGSymbolFrame)
|
2017-06-14 16:40:59 +03:00
|
|
|
NS_QUERYFRAME_TAIL_INHERITING(nsSVGViewportFrame)
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
void nsSVGSymbolFrame::Init(nsIContent* aContent, nsContainerFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow) {
|
|
|
|
NS_ASSERTION(aContent->IsSVGElement(nsGkAtoms::symbol),
|
|
|
|
"Content is not an SVG 'symbol' element!");
|
|
|
|
|
|
|
|
nsSVGViewportFrame::Init(aContent, aParent, aPrevInFlow);
|
|
|
|
}
|
2018-12-21 19:16:50 +03:00
|
|
|
#endif /* DEBUG */
|