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/. */
|
2009-04-24 23:17:43 +00:00
|
|
|
|
2020-07-14 23:40:05 +00:00
|
|
|
#ifndef LAYOUT_SVG_SVGINNERSVGFRAME_H_
|
|
|
|
#define LAYOUT_SVG_SVGINNERSVGFRAME_H_
|
2013-11-18 14:29:47 +00:00
|
|
|
|
2020-06-27 05:39:42 +00:00
|
|
|
#include "SVGViewportFrame.h"
|
2012-03-02 08:28:59 +00:00
|
|
|
|
2019-04-16 07:24:49 +00:00
|
|
|
namespace mozilla {
|
|
|
|
class PresShell;
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2020-06-27 05:39:42 +00:00
|
|
|
nsIFrame* NS_NewSVGInnerSVGFrame(mozilla::PresShell* aPresShell,
|
|
|
|
mozilla::ComputedStyle* aStyle);
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
class SVGInnerSVGFrame final : public SVGViewportFrame {
|
|
|
|
friend nsIFrame* ::NS_NewSVGInnerSVGFrame(mozilla::PresShell* aPresShell,
|
|
|
|
ComputedStyle* aStyle);
|
2018-11-30 10:46:48 +00:00
|
|
|
|
2009-04-24 23:17:43 +00:00
|
|
|
protected:
|
2020-06-27 05:39:42 +00:00
|
|
|
explicit SVGInnerSVGFrame(ComputedStyle* aStyle, nsPresContext* aPresContext)
|
|
|
|
: SVGViewportFrame(aStyle, aPresContext, kClassID) {}
|
2016-04-18 07:23:52 +00:00
|
|
|
|
2009-04-24 23:17:43 +00:00
|
|
|
public:
|
|
|
|
NS_DECL_QUERYFRAME
|
2020-06-27 05:39:42 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(SVGInnerSVGFrame)
|
2009-04-24 23:17:43 +00:00
|
|
|
|
|
|
|
#ifdef DEBUG
|
2022-12-03 19:18:26 +00:00
|
|
|
void Init(nsIContent* aContent, nsContainerFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow) override;
|
2009-04-24 23:17:43 +00:00
|
|
|
#endif
|
|
|
|
|
2014-01-05 23:31:14 +00:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2022-12-03 19:18:26 +00:00
|
|
|
nsresult GetFrameName(nsAString& aResult) const override {
|
2009-04-24 23:17:43 +00:00
|
|
|
return MakeFrameName(u"SVGInnerSVG"_ns, aResult);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
};
|
2013-11-18 14:29:47 +00:00
|
|
|
|
2020-06-27 05:39:42 +00:00
|
|
|
} // namespace mozilla
|
|
|
|
|
2020-07-14 23:40:05 +00:00
|
|
|
#endif // LAYOUT_SVG_SVGINNERSVGFRAME_H_
|