2004-11-23 13:51:57 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
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
|
|
|
|
|
2009-04-29 04:31:34 +00:00
|
|
|
#include "gfxMatrix.h"
|
2012-03-20 12:15:55 +00:00
|
|
|
#include "nsSVGContainerFrame.h"
|
2004-11-23 13:51:57 +00:00
|
|
|
|
2006-06-01 15:31:15 +00:00
|
|
|
typedef nsSVGDisplayContainerFrame nsSVGGFrameBase;
|
2004-11-23 13:51:57 +00:00
|
|
|
|
2007-02-05 20:04:17 +00:00
|
|
|
class nsSVGGFrame : public nsSVGGFrameBase
|
2004-11-23 13:51:57 +00:00
|
|
|
{
|
2007-07-25 09:16:02 +00:00
|
|
|
friend nsIFrame*
|
2009-01-19 18:31:34 +00:00
|
|
|
NS_NewSVGGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
2007-07-25 09:16:02 +00:00
|
|
|
protected:
|
2006-03-26 21:30:36 +00:00
|
|
|
nsSVGGFrame(nsStyleContext* aContext) :
|
2008-10-17 19:41:35 +00:00
|
|
|
nsSVGGFrameBase(aContext) {}
|
2004-12-24 16:26:10 +00:00
|
|
|
|
2007-07-25 09:16:02 +00:00
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2009-01-19 18:31:34 +00:00
|
|
|
#ifdef DEBUG
|
|
|
|
NS_IMETHOD Init(nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow);
|
|
|
|
#endif
|
|
|
|
|
2005-04-01 19:56:08 +00:00
|
|
|
/**
|
|
|
|
* Get the "type" of the frame
|
|
|
|
*
|
2007-01-30 00:06:41 +00:00
|
|
|
* @see nsGkAtoms::svgGFrame
|
2005-04-01 19:56:08 +00:00
|
|
|
*/
|
|
|
|
virtual nsIAtom* GetType() const;
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
NS_IMETHOD GetFrameName(nsAString& aResult) const
|
|
|
|
{
|
|
|
|
return MakeFrameName(NS_LITERAL_STRING("SVGG"), aResult);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2006-03-21 15:49:20 +00:00
|
|
|
// nsIFrame interface:
|
2012-08-22 15:56:38 +00:00
|
|
|
NS_IMETHOD AttributeChanged(int32_t aNameSpaceID,
|
2006-06-01 15:31:15 +00:00
|
|
|
nsIAtom* aAttribute,
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t aModType);
|
2006-03-21 15:49:20 +00:00
|
|
|
|
2004-11-23 13:51:57 +00:00
|
|
|
// nsISVGChildFrame interface:
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual void NotifySVGChanged(uint32_t aFlags);
|
2004-12-24 16:26:10 +00:00
|
|
|
|
2006-06-01 15:31:15 +00:00
|
|
|
// nsSVGContainerFrame methods:
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual gfxMatrix GetCanvasTM(uint32_t aFor);
|
2004-12-24 16:26:10 +00:00
|
|
|
|
2011-09-25 21:04:32 +00:00
|
|
|
nsAutoPtr<gfxMatrix> mCanvasTM;
|
2004-11-23 13:51:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|