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-11-23 13:51:57 +00:00
|
|
|
|
2020-07-14 23:40:05 +00:00
|
|
|
#ifndef LAYOUT_SVG_SVGGFRAME_H_
|
|
|
|
#define LAYOUT_SVG_SVGGFRAME_H_
|
2004-11-23 13:51:57 +00:00
|
|
|
|
2013-05-29 19:37:49 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2020-07-09 01:33:33 +00:00
|
|
|
#include "mozilla/SVGContainerFrame.h"
|
2009-04-29 04:31:34 +00:00
|
|
|
#include "gfxMatrix.h"
|
2004-11-23 13:51:57 +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_NewSVGGFrame(mozilla::PresShell* aPresShell,
|
|
|
|
mozilla::ComputedStyle* aStyle);
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
2020-07-09 01:33:33 +00:00
|
|
|
class SVGGFrame : public SVGDisplayContainerFrame {
|
2020-06-27 05:39:42 +00:00
|
|
|
friend nsIFrame* ::NS_NewSVGGFrame(mozilla::PresShell* aPresShell,
|
|
|
|
mozilla::ComputedStyle* aStyle);
|
|
|
|
explicit SVGGFrame(ComputedStyle* aStyle, nsPresContext* aPresContext)
|
|
|
|
: SVGGFrame(aStyle, aPresContext, kClassID) {}
|
2018-11-30 10:46:48 +00:00
|
|
|
|
2017-05-26 10:11:11 +00:00
|
|
|
protected:
|
2020-06-27 05:39:42 +00:00
|
|
|
SVGGFrame(ComputedStyle* aStyle, nsPresContext* aPresContext,
|
|
|
|
nsIFrame::ClassID aID)
|
2020-07-09 01:33:33 +00:00
|
|
|
: SVGDisplayContainerFrame(aStyle, aPresContext, aID) {}
|
2004-12-24 16:26:10 +00:00
|
|
|
|
2007-07-25 09:16:02 +00:00
|
|
|
public:
|
2020-06-27 05:39:42 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(SVGGFrame)
|
2009-09-12 16:49:24 +00:00
|
|
|
|
2009-01-19 18:31:34 +00:00
|
|
|
#ifdef DEBUG
|
2014-05-24 22:20:40 +00:00
|
|
|
virtual void Init(nsIContent* aContent, nsContainerFrame* aParent,
|
2015-03-21 16:28:04 +00:00
|
|
|
nsIFrame* aPrevInFlow) override;
|
2009-01-19 18:31:34 +00:00
|
|
|
#endif
|
|
|
|
|
2014-01-05 23:31:14 +00:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const override {
|
2005-04-01 19:56:08 +00:00
|
|
|
return MakeFrameName(u"SVGG"_ns, aResult);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2006-03-21 15:49:20 +00:00
|
|
|
// nsIFrame interface:
|
2014-02-18 07:47:48 +00:00
|
|
|
virtual nsresult AttributeChanged(int32_t aNameSpaceID, nsAtom* aAttribute,
|
2015-03-21 16:28:04 +00:00
|
|
|
int32_t aModType) override;
|
2004-11-23 13:51:57 +00:00
|
|
|
};
|
|
|
|
|
2020-06-27 05:39:42 +00:00
|
|
|
} // namespace mozilla
|
|
|
|
|
2020-07-14 23:40:05 +00:00
|
|
|
#endif // LAYOUT_SVG_SVGGFRAME_H_
|