2001-12-12 07:59:31 +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/. */
|
2001-12-12 07:59:31 +00:00
|
|
|
|
2012-03-26 11:58:59 +00:00
|
|
|
// Main header first:
|
2004-10-07 20:59:53 +00:00
|
|
|
#include "nsSVGGenericContainerFrame.h"
|
2012-06-30 11:20:46 +00:00
|
|
|
#include "nsSVGIntegrationUtils.h"
|
2001-12-12 07:59:31 +00:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
2004-10-07 20:59:53 +00:00
|
|
|
// nsSVGGenericContainerFrame Implementation
|
2001-12-12 07:59:31 +00:00
|
|
|
|
2005-11-11 02:36:29 +00:00
|
|
|
nsIFrame*
|
2009-01-19 18:31:34 +00:00
|
|
|
NS_NewSVGGenericContainerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
2001-12-12 07:59:31 +00:00
|
|
|
{
|
2006-03-26 21:30:36 +00:00
|
|
|
return new (aPresShell) nsSVGGenericContainerFrame(aContext);
|
2001-12-12 07:59:31 +00:00
|
|
|
}
|
|
|
|
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsSVGGenericContainerFrame)
|
|
|
|
|
2001-12-12 07:59:31 +00:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIFrame methods
|
|
|
|
|
2014-02-18 07:47:48 +00:00
|
|
|
nsresult
|
2012-08-22 15:56:38 +00:00
|
|
|
nsSVGGenericContainerFrame::AttributeChanged(int32_t aNameSpaceID,
|
2001-12-12 07:59:31 +00:00
|
|
|
nsIAtom* aAttribute,
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t aModType)
|
2001-12-12 07:59:31 +00:00
|
|
|
{
|
|
|
|
#ifdef DEBUG
|
|
|
|
nsAutoString str;
|
|
|
|
aAttribute->ToString(str);
|
2003-07-11 21:16:12 +00:00
|
|
|
printf("** nsSVGGenericContainerFrame::AttributeChanged(%s)\n",
|
2006-02-03 14:18:39 +00:00
|
|
|
NS_LossyConvertUTF16toASCII(str).get());
|
2001-12-12 07:59:31 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2005-04-01 19:56:08 +00:00
|
|
|
nsIAtom *
|
|
|
|
nsSVGGenericContainerFrame::GetType() const
|
|
|
|
{
|
2006-12-26 17:47:52 +00:00
|
|
|
return nsGkAtoms::svgGenericContainerFrame;
|
2005-04-01 19:56:08 +00:00
|
|
|
}
|
|
|
|
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 12:39:26 +00:00
|
|
|
//----------------------------------------------------------------------
|
2006-06-01 15:31:15 +00:00
|
|
|
// nsSVGContainerFrame methods:
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 12:39:26 +00:00
|
|
|
|
2009-04-29 04:31:34 +00:00
|
|
|
gfxMatrix
|
2014-09-08 11:28:50 +00:00
|
|
|
nsSVGGenericContainerFrame::GetCanvasTM()
|
2004-08-05 09:01:13 +00:00
|
|
|
{
|
2014-05-24 22:20:41 +00:00
|
|
|
NS_ASSERTION(GetParent(), "null parent");
|
2004-08-05 09:01:13 +00:00
|
|
|
|
2014-09-08 11:28:50 +00:00
|
|
|
return static_cast<nsSVGContainerFrame*>(GetParent())->GetCanvasTM();
|
2004-08-05 09:01:13 +00:00
|
|
|
}
|