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
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2004-04-18 14:30:37 +00:00
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
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
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
2004-04-18 14:30:37 +00:00
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
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
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is the Mozilla SVG project.
|
|
|
|
*
|
2004-04-18 14:30:37 +00:00
|
|
|
* The Initial Developer of the Original Code is
|
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
|
|
|
* Crocodile Clips Ltd..
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2002
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
2004-04-18 14:30:37 +00:00
|
|
|
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
|
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
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2004-04-18 14:30:37 +00:00
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
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
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
2004-04-18 14:30:37 +00:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
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
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
2004-04-18 14:30:37 +00:00
|
|
|
* ***** END LICENSE BLOCK ***** */
|
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
|
|
|
|
|
|
|
#include "nsIDOMSVGTextElement.h"
|
2006-06-28 15:23:40 +00:00
|
|
|
#include "nsSVGTextFrame.h"
|
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
|
|
|
#include "nsWeakReference.h"
|
2010-07-16 21:42:12 +00:00
|
|
|
#include "SVGLengthList.h"
|
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
|
|
|
#include "nsIDOMSVGLength.h"
|
2006-07-11 15:52:15 +00:00
|
|
|
#include "nsIDOMSVGAnimatedNumber.h"
|
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
|
|
|
#include "nsISVGGlyphFragmentNode.h"
|
|
|
|
#include "nsISVGGlyphFragmentLeaf.h"
|
2006-06-15 19:10:28 +00:00
|
|
|
#include "nsSVGOuterSVGFrame.h"
|
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
|
|
|
#include "nsIDOMSVGRect.h"
|
2004-12-05 22:12:43 +00:00
|
|
|
#include "nsSVGRect.h"
|
2004-12-24 16:26:10 +00:00
|
|
|
#include "nsSVGMatrix.h"
|
2007-01-30 00:06:41 +00:00
|
|
|
#include "nsGkAtoms.h"
|
2006-06-15 15:59:28 +00:00
|
|
|
#include "nsSVGTextPathFrame.h"
|
|
|
|
#include "nsSVGPathElement.h"
|
2005-08-26 02:49:52 +00:00
|
|
|
#include "nsSVGUtils.h"
|
2006-04-20 15:24:51 +00:00
|
|
|
#include "nsSVGGraphicElement.h"
|
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
|
|
|
|
2010-07-16 21:42:12 +00:00
|
|
|
using namespace mozilla;
|
|
|
|
|
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
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Implementation
|
|
|
|
|
2005-11-11 02:36:29 +00:00
|
|
|
nsIFrame*
|
2009-01-19 18:31:34 +00:00
|
|
|
NS_NewSVGTextFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
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-03-26 21:30:36 +00:00
|
|
|
return new (aPresShell) nsSVGTextFrame(aContext);
|
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-09-12 16:49:24 +00:00
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsSVGTextFrame)
|
|
|
|
|
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
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsIFrame methods
|
2009-01-19 18:31:34 +00:00
|
|
|
#ifdef DEBUG
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGTextFrame::Init(nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow)
|
|
|
|
{
|
|
|
|
nsCOMPtr<nsIDOMSVGTextElement> text = do_QueryInterface(aContent);
|
|
|
|
NS_ASSERTION(text, "Content is not an SVG text");
|
|
|
|
|
|
|
|
return nsSVGTextFrameBase::Init(aContent, aParent, aPrevInFlow);
|
|
|
|
}
|
|
|
|
#endif /* DEBUG */
|
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
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2005-09-07 16:49:21 +00:00
|
|
|
nsSVGTextFrame::AttributeChanged(PRInt32 aNameSpaceID,
|
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
|
|
|
nsIAtom* aAttribute,
|
2005-04-19 03:48:10 +00:00
|
|
|
PRInt32 aModType)
|
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-03-02 20:22:19 +00:00
|
|
|
if (aNameSpaceID != kNameSpaceID_None)
|
|
|
|
return NS_OK;
|
|
|
|
|
|
|
|
if (aAttribute == nsGkAtoms::transform) {
|
|
|
|
// transform has changed
|
|
|
|
|
|
|
|
// make sure our cached transform matrix gets (lazily) updated
|
|
|
|
mCanvasTM = nsnull;
|
2008-01-25 09:27:03 +00:00
|
|
|
|
|
|
|
nsSVGUtils::NotifyChildrenOfSVGChange(this, TRANSFORM_CHANGED);
|
|
|
|
|
2006-03-02 20:22:19 +00:00
|
|
|
} else if (aAttribute == nsGkAtoms::x ||
|
|
|
|
aAttribute == nsGkAtoms::y ||
|
|
|
|
aAttribute == nsGkAtoms::dx ||
|
|
|
|
aAttribute == nsGkAtoms::dy) {
|
2006-12-06 09:34:14 +00:00
|
|
|
NotifyGlyphMetricsChange();
|
2006-03-02 20:22:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return NS_OK;
|
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
|
|
|
}
|
|
|
|
|
2005-04-01 19:56:08 +00:00
|
|
|
nsIAtom *
|
|
|
|
nsSVGTextFrame::GetType() const
|
|
|
|
{
|
2006-12-26 17:47:52 +00:00
|
|
|
return nsGkAtoms::svgTextFrame;
|
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
|
|
|
//----------------------------------------------------------------------
|
2009-05-29 10:15:40 +00:00
|
|
|
// nsSVGTextContainerFrame
|
|
|
|
PRUint32
|
|
|
|
nsSVGTextFrame::GetNumberOfChars()
|
2006-02-17 21:24:30 +00:00
|
|
|
{
|
2008-03-18 19:50:29 +00:00
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
2006-02-17 21:24:30 +00:00
|
|
|
|
2009-05-29 10:15:40 +00:00
|
|
|
return nsSVGTextFrameBase::GetNumberOfChars();
|
2006-02-17 21:24:30 +00:00
|
|
|
}
|
|
|
|
|
2009-05-29 10:15:40 +00:00
|
|
|
float
|
|
|
|
nsSVGTextFrame::GetComputedTextLength()
|
2006-02-17 21:24:30 +00:00
|
|
|
{
|
2008-03-18 19:50:29 +00:00
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
2006-02-17 21:24:30 +00:00
|
|
|
|
2009-05-29 10:15:40 +00:00
|
|
|
return nsSVGTextFrameBase::GetComputedTextLength();
|
2006-02-17 21:24:30 +00:00
|
|
|
}
|
|
|
|
|
2009-05-29 10:15:40 +00:00
|
|
|
float
|
|
|
|
nsSVGTextFrame::GetSubStringLength(PRUint32 charnum, PRUint32 nchars)
|
|
|
|
{
|
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
|
|
|
|
|
|
|
return nsSVGTextFrameBase::GetSubStringLength(charnum, nchars);
|
|
|
|
}
|
|
|
|
|
|
|
|
PRInt32
|
|
|
|
nsSVGTextFrame::GetCharNumAtPosition(nsIDOMSVGPoint *point)
|
2006-02-17 21:24:30 +00:00
|
|
|
{
|
2008-03-18 19:50:29 +00:00
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
2006-02-17 21:24:30 +00:00
|
|
|
|
2009-05-29 10:15:40 +00:00
|
|
|
return nsSVGTextFrameBase::GetCharNumAtPosition(point);
|
2006-02-17 21:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGTextFrame::GetStartPositionOfChar(PRUint32 charnum, nsIDOMSVGPoint **_retval)
|
|
|
|
{
|
2008-03-18 19:50:29 +00:00
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
2006-02-17 21:24:30 +00:00
|
|
|
|
2006-06-28 15:23:40 +00:00
|
|
|
return nsSVGTextFrameBase::GetStartPositionOfChar(charnum, _retval);
|
2006-02-17 21:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGTextFrame::GetEndPositionOfChar(PRUint32 charnum, nsIDOMSVGPoint **_retval)
|
|
|
|
{
|
2008-03-18 19:50:29 +00:00
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
2006-02-17 21:24:30 +00:00
|
|
|
|
2006-06-28 15:23:40 +00:00
|
|
|
return nsSVGTextFrameBase::GetEndPositionOfChar(charnum, _retval);
|
2006-02-17 21:24:30 +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
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGTextFrame::GetExtentOfChar(PRUint32 charnum, nsIDOMSVGRect **_retval)
|
|
|
|
{
|
2008-03-18 19:50:29 +00:00
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
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-28 15:23:40 +00:00
|
|
|
return nsSVGTextFrameBase::GetExtentOfChar(charnum, _retval);
|
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-02-17 21:24:30 +00:00
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGTextFrame::GetRotationOfChar(PRUint32 charnum, float *_retval)
|
|
|
|
{
|
2008-03-18 19:50:29 +00:00
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
2006-02-17 21:24:30 +00:00
|
|
|
|
2006-06-28 15:23:40 +00:00
|
|
|
return nsSVGTextFrameBase::GetRotationOfChar(charnum, _retval);
|
2006-02-17 21:24:30 +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
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsISVGChildFrame methods
|
|
|
|
|
2008-01-25 09:27:03 +00:00
|
|
|
void
|
|
|
|
nsSVGTextFrame::NotifySVGChanged(PRUint32 aFlags)
|
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
|
|
|
{
|
2008-01-25 09:27:03 +00:00
|
|
|
if (aFlags & TRANSFORM_CHANGED) {
|
|
|
|
// make sure our cached transform matrix gets (lazily) updated
|
|
|
|
mCanvasTM = nsnull;
|
|
|
|
}
|
2006-06-01 15:31:15 +00:00
|
|
|
|
2009-12-12 14:37:20 +00:00
|
|
|
nsSVGTextFrameBase::NotifySVGChanged(aFlags);
|
|
|
|
|
2008-01-25 09:27:03 +00:00
|
|
|
if (aFlags & COORD_CONTEXT_CHANGED) {
|
|
|
|
// If we are positioned using percentage values we need to update our
|
|
|
|
// position whenever our viewport's dimensions change.
|
|
|
|
|
|
|
|
// XXX We could check here whether the text frame or any of its children
|
|
|
|
// have any percentage co-ordinates and only update if they don't. This
|
|
|
|
// may not be worth it as we might need to check each glyph
|
|
|
|
NotifyGlyphMetricsChange();
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGTextFrame::NotifyRedrawSuspended()
|
|
|
|
{
|
|
|
|
mMetricsState = suspended;
|
2006-06-01 15:31:15 +00:00
|
|
|
|
2006-11-14 00:48:33 +00:00
|
|
|
return nsSVGTextFrameBase::NotifyRedrawSuspended();
|
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
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGTextFrame::NotifyRedrawUnsuspended()
|
|
|
|
{
|
|
|
|
mMetricsState = unsuspended;
|
2008-03-18 19:50:29 +00:00
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
2006-11-14 00:48:33 +00:00
|
|
|
return nsSVGTextFrameBase::NotifyRedrawUnsuspended();
|
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
|
|
|
}
|
|
|
|
|
2008-03-18 19:50:29 +00:00
|
|
|
NS_IMETHODIMP
|
2008-10-20 08:42:03 +00:00
|
|
|
nsSVGTextFrame::PaintSVG(nsSVGRenderState* aContext,
|
|
|
|
const nsIntRect *aDirtyRect)
|
2008-03-18 19:50:29 +00:00
|
|
|
{
|
|
|
|
UpdateGlyphPositioning(PR_TRUE);
|
|
|
|
|
|
|
|
return nsSVGTextFrameBase::PaintSVG(aContext, aDirtyRect);
|
|
|
|
}
|
|
|
|
|
2008-08-25 09:23:54 +00:00
|
|
|
NS_IMETHODIMP_(nsIFrame*)
|
|
|
|
nsSVGTextFrame::GetFrameForPoint(const nsPoint &aPoint)
|
2008-03-18 19:50:29 +00:00
|
|
|
{
|
|
|
|
UpdateGlyphPositioning(PR_TRUE);
|
|
|
|
|
2008-08-25 09:23:54 +00:00
|
|
|
return nsSVGTextFrameBase::GetFrameForPoint(aPoint);
|
2008-03-18 19:50:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGTextFrame::UpdateCoveredRegion()
|
|
|
|
{
|
|
|
|
UpdateGlyphPositioning(PR_TRUE);
|
|
|
|
|
|
|
|
return nsSVGTextFrameBase::UpdateCoveredRegion();
|
|
|
|
}
|
|
|
|
|
2008-07-30 19:28:12 +00:00
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGTextFrame::InitialUpdate()
|
|
|
|
{
|
|
|
|
nsresult rv = nsSVGTextFrameBase::InitialUpdate();
|
|
|
|
|
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
|
|
|
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2009-04-29 04:31:34 +00:00
|
|
|
gfxRect
|
|
|
|
nsSVGTextFrame::GetBBoxContribution(const gfxMatrix &aToBBoxUserspace)
|
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
|
|
|
{
|
2008-03-18 19:50:29 +00:00
|
|
|
UpdateGlyphPositioning(PR_TRUE);
|
2006-06-28 15:23:40 +00:00
|
|
|
|
2009-04-29 04:31:34 +00:00
|
|
|
return nsSVGTextFrameBase::GetBBoxContribution(aToBBoxUserspace);
|
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
|
2004-08-05 09:01:13 +00:00
|
|
|
nsSVGTextFrame::GetCanvasTM()
|
|
|
|
{
|
2005-09-06 22:30:40 +00:00
|
|
|
if (!mCanvasTM) {
|
2004-08-05 09:01:13 +00:00
|
|
|
NS_ASSERTION(mParent, "null parent");
|
2009-04-29 04:31:34 +00:00
|
|
|
|
|
|
|
nsSVGContainerFrame *parent = static_cast<nsSVGContainerFrame*>(mParent);
|
|
|
|
nsSVGGraphicElement *content = static_cast<nsSVGGraphicElement*>(mContent);
|
|
|
|
|
|
|
|
gfxMatrix tm = content->PrependLocalTransformTo(parent->GetCanvasTM());
|
|
|
|
|
|
|
|
mCanvasTM = NS_NewSVGMatrix(tm);
|
2004-08-05 09:01:13 +00:00
|
|
|
}
|
|
|
|
|
2009-04-29 04:31:34 +00:00
|
|
|
return nsSVGUtils::ConvertSVGMatrixToThebes(mCanvasTM);
|
2004-08-05 09:01:13 +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-28 15:23:40 +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-28 15:23:40 +00:00
|
|
|
void
|
2006-11-14 00:48:33 +00:00
|
|
|
nsSVGTextFrame::NotifyGlyphMetricsChange()
|
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
|
|
|
{
|
|
|
|
mPositioningDirty = PR_TRUE;
|
2008-04-08 12:51:19 +00:00
|
|
|
UpdateGlyphPositioning(PR_FALSE);
|
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
|
|
|
}
|
|
|
|
|
2005-03-07 04:02:02 +00:00
|
|
|
void
|
2008-03-18 19:50:29 +00:00
|
|
|
nsSVGTextFrame::UpdateGlyphPositioning(PRBool aForceGlobalTransform)
|
2005-03-07 04:02:02 +00:00
|
|
|
{
|
2006-11-14 00:48:33 +00:00
|
|
|
if (mMetricsState == suspended || !mPositioningDirty)
|
|
|
|
return;
|
|
|
|
|
|
|
|
SetWhitespaceHandling();
|
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-28 15:23:40 +00:00
|
|
|
nsISVGGlyphFragmentNode* node = GetFirstGlyphFragmentChildNode();
|
2005-03-07 04:02:02 +00:00
|
|
|
if (!node) return;
|
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
|
|
|
|
2008-04-08 12:51:19 +00:00
|
|
|
mPositioningDirty = PR_FALSE;
|
|
|
|
|
2005-03-07 04:02:02 +00:00
|
|
|
nsISVGGlyphFragmentLeaf *fragment, *firstFragment;
|
|
|
|
|
|
|
|
firstFragment = node->GetFirstGlyphFragment();
|
2006-07-19 12:33:35 +00:00
|
|
|
if (!firstFragment) {
|
|
|
|
return;
|
|
|
|
}
|
2005-03-07 04:02:02 +00:00
|
|
|
|
2010-03-30 10:21:19 +00:00
|
|
|
gfxPoint ctp(0.0, 0.0);
|
2005-10-03 01:21:00 +00:00
|
|
|
|
2010-07-16 21:42:12 +00:00
|
|
|
SVGUserUnitList xLengthList, yLengthList;
|
|
|
|
GetXY(&xLengthList, &yLengthList);
|
|
|
|
if (xLengthList.Length() > 0) ctp.x = xLengthList[0];
|
|
|
|
if (yLengthList.Length() > 0) ctp.y = yLengthList[0];
|
2005-10-03 01:21:00 +00:00
|
|
|
|
2005-03-07 04:02:02 +00:00
|
|
|
// loop over chunks
|
|
|
|
while (firstFragment) {
|
2010-07-16 21:42:12 +00:00
|
|
|
firstFragment->GetXY(&xLengthList, &yLengthList);
|
|
|
|
if (xLengthList.Length() > 0) ctp.x = xLengthList[0];
|
|
|
|
if (yLengthList.Length() > 0) ctp.y = yLengthList[0];
|
2005-03-07 04:02:02 +00:00
|
|
|
|
2007-12-04 06:51:36 +00:00
|
|
|
// check for startOffset on textPath
|
|
|
|
nsSVGTextPathFrame *textPath = firstFragment->FindTextPathParent();
|
|
|
|
if (textPath) {
|
2009-01-28 09:44:39 +00:00
|
|
|
if (!textPath->GetPathFrame()) {
|
|
|
|
// invalid text path, give up
|
|
|
|
return;
|
|
|
|
}
|
2010-03-30 10:21:19 +00:00
|
|
|
ctp.x = textPath->GetStartOffset();
|
2007-12-04 06:51:36 +00:00
|
|
|
}
|
|
|
|
|
2005-03-07 04:02:02 +00:00
|
|
|
// determine x offset based on text_anchor:
|
|
|
|
|
|
|
|
PRUint8 anchor = firstFragment->GetTextAnchor();
|
|
|
|
|
|
|
|
float chunkLength = 0.0f;
|
|
|
|
if (anchor != NS_STYLE_TEXT_ANCHOR_START) {
|
|
|
|
// need to get the total chunk length
|
|
|
|
|
|
|
|
fragment = firstFragment;
|
|
|
|
while (fragment) {
|
2010-03-30 10:21:19 +00:00
|
|
|
chunkLength += fragment->GetAdvance(aForceGlobalTransform);
|
2005-03-07 04:02:02 +00:00
|
|
|
fragment = fragment->GetNextGlyphFragment();
|
|
|
|
if (fragment && fragment->IsAbsolutelyPositioned())
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (anchor == NS_STYLE_TEXT_ANCHOR_MIDDLE)
|
2010-03-30 10:21:19 +00:00
|
|
|
ctp.x -= chunkLength/2.0f;
|
2005-03-07 04:02:02 +00:00
|
|
|
else if (anchor == NS_STYLE_TEXT_ANCHOR_END)
|
2010-03-30 10:21:19 +00:00
|
|
|
ctp.x -= chunkLength;
|
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
|
|
|
|
2005-03-07 04:02:02 +00:00
|
|
|
// set position of each fragment in this chunk:
|
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
|
|
|
|
2005-03-07 04:02:02 +00:00
|
|
|
fragment = firstFragment;
|
|
|
|
while (fragment) {
|
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
|
|
|
|
2010-03-30 10:21:19 +00:00
|
|
|
fragment->SetGlyphPosition(&ctp, aForceGlobalTransform);
|
2005-03-07 04:02:02 +00:00
|
|
|
fragment = fragment->GetNextGlyphFragment();
|
|
|
|
if (fragment && fragment->IsAbsolutelyPositioned())
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
firstFragment = fragment;
|
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
|
|
|
}
|
2010-03-10 15:38:14 +00:00
|
|
|
nsSVGUtils::UpdateGraphic(this);
|
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
|
|
|
}
|