2004-08-05 13:01:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04: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 13:01:13 +04:00
|
|
|
|
2012-03-26 15:58:59 +04:00
|
|
|
// Main header first:
|
2009-04-25 03:17:43 +04:00
|
|
|
#include "nsSVGInnerSVGFrame.h"
|
2012-03-20 16:15:55 +04:00
|
|
|
|
2005-11-11 05:36:29 +03:00
|
|
|
nsIFrame*
|
2009-01-19 21:31:34 +03:00
|
|
|
NS_NewSVGInnerSVGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
2004-08-05 13:01:13 +04:00
|
|
|
{
|
2007-07-25 13:16:02 +04:00
|
|
|
return new (aPresShell) nsSVGInnerSVGFrame(aContext);
|
2004-08-05 13:01:13 +04:00
|
|
|
}
|
|
|
|
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsSVGInnerSVGFrame)
|
|
|
|
|
2004-08-05 13:01:13 +04:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIFrame methods
|
2004-09-14 02:55:43 +04:00
|
|
|
|
2009-01-12 22:20:59 +03:00
|
|
|
NS_QUERYFRAME_HEAD(nsSVGInnerSVGFrame)
|
2009-04-25 03:17:43 +04:00
|
|
|
NS_QUERYFRAME_ENTRY(nsSVGInnerSVGFrame)
|
2009-01-12 22:20:59 +03:00
|
|
|
NS_QUERYFRAME_ENTRY(nsISVGSVGFrame)
|
2017-06-14 16:05:37 +03:00
|
|
|
NS_QUERYFRAME_TAIL_INHERITING(nsSVGViewportFrame)
|
2009-01-12 22:20:59 +03:00
|
|
|
|
2009-01-19 21:31:34 +03:00
|
|
|
#ifdef DEBUG
|
2013-03-20 05:47:48 +04:00
|
|
|
void
|
2014-05-25 02:20:40 +04:00
|
|
|
nsSVGInnerSVGFrame::Init(nsIContent* aContent,
|
|
|
|
nsContainerFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow)
|
2009-01-19 21:31:34 +03:00
|
|
|
{
|
2015-03-03 14:08:59 +03:00
|
|
|
NS_ASSERTION(aContent->IsSVGElement(nsGkAtoms::svg),
|
2013-01-08 07:22:41 +04:00
|
|
|
"Content is not an SVG 'svg' element!");
|
2009-01-19 21:31:34 +03:00
|
|
|
|
2017-06-14 16:05:37 +03:00
|
|
|
nsSVGViewportFrame::Init(aContent, aParent, aPrevInFlow);
|
2009-01-19 21:31:34 +03:00
|
|
|
}
|
|
|
|
#endif /* DEBUG */
|