2017-10-27 17:33:53 +00: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: */
|
2012-05-21 11:12:37 +00: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/. */
|
2004-08-05 09:01:13 +00:00
|
|
|
|
2012-03-26 11:58:59 +00:00
|
|
|
// Main header first:
|
2009-04-24 23:17:43 +00:00
|
|
|
#include "nsSVGInnerSVGFrame.h"
|
2012-03-20 12:15:55 +00:00
|
|
|
|
2018-11-12 22:20:52 +00:00
|
|
|
using namespace mozilla;
|
|
|
|
|
2018-03-22 18:20:41 +00:00
|
|
|
nsIFrame* NS_NewSVGInnerSVGFrame(nsIPresShell* aPresShell,
|
|
|
|
ComputedStyle* aStyle) {
|
|
|
|
return new (aPresShell) nsSVGInnerSVGFrame(aStyle);
|
2004-08-05 09:01:13 +00:00
|
|
|
}
|
|
|
|
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsSVGInnerSVGFrame)
|
|
|
|
|
2004-08-05 09:01:13 +00:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIFrame methods
|
2004-09-13 22:55:43 +00:00
|
|
|
|
2009-01-12 19:20:59 +00:00
|
|
|
NS_QUERYFRAME_HEAD(nsSVGInnerSVGFrame)
|
2018-12-07 20:00:18 +00:00
|
|
|
NS_QUERYFRAME_ENTRY(nsSVGInnerSVGFrame)
|
|
|
|
NS_QUERYFRAME_ENTRY(nsISVGSVGFrame)
|
2017-06-14 13:05:37 +00:00
|
|
|
NS_QUERYFRAME_TAIL_INHERITING(nsSVGViewportFrame)
|
2009-01-12 19:20:59 +00:00
|
|
|
|
2009-01-19 18:31:34 +00:00
|
|
|
#ifdef DEBUG
|
2014-05-24 22:20:40 +00:00
|
|
|
void nsSVGInnerSVGFrame::Init(nsIContent* aContent, nsContainerFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow) {
|
2015-03-03 11:08:59 +00:00
|
|
|
NS_ASSERTION(aContent->IsSVGElement(nsGkAtoms::svg),
|
2013-01-08 03:22:41 +00:00
|
|
|
"Content is not an SVG 'svg' element!");
|
2009-01-19 18:31:34 +00:00
|
|
|
|
2017-06-14 13:05:37 +00:00
|
|
|
nsSVGViewportFrame::Init(aContent, aParent, aPrevInFlow);
|
2009-01-19 18:31:34 +00:00
|
|
|
}
|
|
|
|
#endif /* DEBUG */
|