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: */
|
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:
|
2020-06-27 08:39:42 +03:00
|
|
|
#include "SVGInnerSVGFrame.h"
|
2012-03-20 16:15:55 +04:00
|
|
|
|
2019-04-16 10:24:49 +03:00
|
|
|
#include "mozilla/PresShell.h"
|
|
|
|
|
2020-06-27 08:39:42 +03:00
|
|
|
nsIFrame* NS_NewSVGInnerSVGFrame(mozilla::PresShell* aPresShell,
|
|
|
|
mozilla::ComputedStyle* aStyle) {
|
2019-02-05 19:45:54 +03:00
|
|
|
return new (aPresShell)
|
2020-06-27 08:39:42 +03:00
|
|
|
mozilla::SVGInnerSVGFrame(aStyle, aPresShell->GetPresContext());
|
2004-08-05 13:01:13 +04:00
|
|
|
}
|
|
|
|
|
2020-06-27 08:39:42 +03:00
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(SVGInnerSVGFrame)
|
2009-09-12 20:49:24 +04:00
|
|
|
|
2004-08-05 13:01:13 +04:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIFrame methods
|
2004-09-14 02:55:43 +04:00
|
|
|
|
2020-06-27 08:39:42 +03:00
|
|
|
NS_QUERYFRAME_HEAD(SVGInnerSVGFrame)
|
|
|
|
NS_QUERYFRAME_ENTRY(SVGInnerSVGFrame)
|
2020-07-09 21:34:54 +03:00
|
|
|
NS_QUERYFRAME_ENTRY(ISVGSVGFrame)
|
2020-06-27 08:39:42 +03:00
|
|
|
NS_QUERYFRAME_TAIL_INHERITING(SVGViewportFrame)
|
2009-01-12 22:20:59 +03:00
|
|
|
|
2009-01-19 21:31:34 +03:00
|
|
|
#ifdef DEBUG
|
2020-06-27 08:39:42 +03:00
|
|
|
void SVGInnerSVGFrame::Init(nsIContent* aContent, nsContainerFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow) {
|
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
|
|
|
|
2020-06-27 08:39:42 +03:00
|
|
|
SVGViewportFrame::Init(aContent, aParent, aPrevInFlow);
|
2009-01-19 21:31:34 +03:00
|
|
|
}
|
|
|
|
#endif /* DEBUG */
|
2020-06-27 08:39:42 +03:00
|
|
|
|
|
|
|
} // namespace mozilla
|