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