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
|
|
|
|
|
|
|
#ifndef NSSVGGFRAME_H
|
|
|
|
#define NSSVGGFRAME_H
|
|
|
|
|
2013-05-29 19:37:49 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2009-04-29 04:31:34 +00:00
|
|
|
#include "gfxMatrix.h"
|
2016-06-07 20:10:18 +00:00
|
|
|
#include "nsAutoPtr.h"
|
2012-03-20 12:15:55 +00:00
|
|
|
#include "nsSVGContainerFrame.h"
|
2004-11-23 13:51:57 +00:00
|
|
|
|
2016-04-18 07:08:01 +00:00
|
|
|
class nsSVGGFrame : public nsSVGDisplayContainerFrame
|
2004-11-23 13:51:57 +00:00
|
|
|
{
|
2007-07-25 09:16:02 +00:00
|
|
|
friend nsIFrame*
|
2018-03-22 18:20:41 +00:00
|
|
|
NS_NewSVGGFrame(nsIPresShell* aPresShell, ComputedStyle* aStyle);
|
|
|
|
explicit nsSVGGFrame(ComputedStyle* aStyle)
|
|
|
|
: nsSVGGFrame(aStyle, kClassID) {}
|
2017-04-30 15:30:08 +00:00
|
|
|
|
2017-05-26 10:11:11 +00:00
|
|
|
protected:
|
2018-03-22 18:20:41 +00:00
|
|
|
nsSVGGFrame(ComputedStyle* aStyle, nsIFrame::ClassID aID)
|
|
|
|
: nsSVGDisplayContainerFrame(aStyle, aID)
|
2017-04-30 15:30:08 +00:00
|
|
|
{}
|
2004-12-24 16:26:10 +00:00
|
|
|
|
2007-07-25 09:16:02 +00:00
|
|
|
public:
|
2017-05-26 10:11:11 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(nsSVGGFrame)
|
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(NS_LITERAL_STRING("SVGG"), 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,
|
2017-10-02 22:05:19 +00:00
|
|
|
nsAtom* aAttribute,
|
2015-03-21 16:28:04 +00:00
|
|
|
int32_t aModType) override;
|
2004-11-23 13:51:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|