diff --git a/content/svg/content/src/nsSVGElement.cpp b/content/svg/content/src/nsSVGElement.cpp index 1b8d052dc59..46d053a2fa8 100644 --- a/content/svg/content/src/nsSVGElement.cpp +++ b/content/svg/content/src/nsSVGElement.cpp @@ -1486,7 +1486,7 @@ nsSVGElement::GetCtx() const } /* virtual */ gfxMatrix -nsSVGElement::PrependLocalTransformTo(const gfxMatrix &aMatrix) const +nsSVGElement::PrependLocalTransformsTo(const gfxMatrix &aMatrix) const { return aMatrix; } diff --git a/content/svg/content/src/nsSVGElement.h b/content/svg/content/src/nsSVGElement.h index 92e1a451274..1e3b28f73d5 100644 --- a/content/svg/content/src/nsSVGElement.h +++ b/content/svg/content/src/nsSVGElement.h @@ -155,7 +155,7 @@ public: * Returns aMatrix post-multiplied by the transform from the userspace * established by this element to the userspace established by its parent. */ - virtual gfxMatrix PrependLocalTransformTo(const gfxMatrix &aMatrix) const; + virtual gfxMatrix PrependLocalTransformsTo(const gfxMatrix &aMatrix) const; // Setter for to set the current transformation // Only visible for nsSVGGraphicElement, so it's a no-op here, and that diff --git a/content/svg/content/src/nsSVGForeignObjectElement.cpp b/content/svg/content/src/nsSVGForeignObjectElement.cpp index 054e2b7ee7b..00918ccc0e8 100644 --- a/content/svg/content/src/nsSVGForeignObjectElement.cpp +++ b/content/svg/content/src/nsSVGForeignObjectElement.cpp @@ -112,10 +112,10 @@ NS_IMETHODIMP nsSVGForeignObjectElement::GetHeight(nsIDOMSVGAnimatedLength * *aH // nsSVGElement methods /* virtual */ gfxMatrix -nsSVGForeignObjectElement::PrependLocalTransformTo(const gfxMatrix &aMatrix) const +nsSVGForeignObjectElement::PrependLocalTransformsTo(const gfxMatrix &aMatrix) const { // 'transform' attribute: - gfxMatrix matrix = nsSVGForeignObjectElementBase::PrependLocalTransformTo(aMatrix); + gfxMatrix matrix = nsSVGForeignObjectElementBase::PrependLocalTransformsTo(aMatrix); // now translate by our 'x' and 'y': float x, y; diff --git a/content/svg/content/src/nsSVGForeignObjectElement.h b/content/svg/content/src/nsSVGForeignObjectElement.h index 9d662bb9daf..5abc88d934b 100644 --- a/content/svg/content/src/nsSVGForeignObjectElement.h +++ b/content/svg/content/src/nsSVGForeignObjectElement.h @@ -69,7 +69,7 @@ public: NS_FORWARD_NSIDOMSVGELEMENT(nsSVGForeignObjectElementBase::) // nsSVGElement specializations: - virtual gfxMatrix PrependLocalTransformTo(const gfxMatrix &aMatrix) const; + virtual gfxMatrix PrependLocalTransformsTo(const gfxMatrix &aMatrix) const; // nsIContent interface NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* name) const; diff --git a/content/svg/content/src/nsSVGGraphicElement.cpp b/content/svg/content/src/nsSVGGraphicElement.cpp index 517168b7759..232e7054f06 100644 --- a/content/svg/content/src/nsSVGGraphicElement.cpp +++ b/content/svg/content/src/nsSVGGraphicElement.cpp @@ -189,7 +189,7 @@ nsSVGGraphicElement::IsEventName(nsIAtom* aName) } gfxMatrix -nsSVGGraphicElement::PrependLocalTransformTo(const gfxMatrix &aMatrix) const +nsSVGGraphicElement::PrependLocalTransformsTo(const gfxMatrix &aMatrix) const { gfxMatrix result(aMatrix); diff --git a/content/svg/content/src/nsSVGGraphicElement.h b/content/svg/content/src/nsSVGGraphicElement.h index 923e8b56bc7..b3516daac24 100644 --- a/content/svg/content/src/nsSVGGraphicElement.h +++ b/content/svg/content/src/nsSVGGraphicElement.h @@ -62,7 +62,7 @@ public: // nsIContent interface NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* aAttribute) const; - virtual gfxMatrix PrependLocalTransformTo(const gfxMatrix &aMatrix) const; + virtual gfxMatrix PrependLocalTransformsTo(const gfxMatrix &aMatrix) const; virtual void SetAnimateMotionTransform(const gfxMatrix* aMatrix); virtual mozilla::SVGAnimatedTransformList* GetAnimatedTransformList(); diff --git a/content/svg/content/src/nsSVGPathElement.cpp b/content/svg/content/src/nsSVGPathElement.cpp index b9c1477e53e..c43da6ebec1 100644 --- a/content/svg/content/src/nsSVGPathElement.cpp +++ b/content/svg/content/src/nsSVGPathElement.cpp @@ -440,7 +440,7 @@ nsSVGPathElement::GetPathLengthScale(PathLengthScaleForType aFor) // For textPath, a transform on the referenced path affects the // textPath layout, so when calculating the actual path length // we need to take that into account. - matrix = PrependLocalTransformTo(matrix); + matrix = PrependLocalTransformsTo(matrix); } nsRefPtr path = GetFlattenedPath(matrix); if (path) { diff --git a/content/svg/content/src/nsSVGSVGElement.cpp b/content/svg/content/src/nsSVGSVGElement.cpp index 9533de44d72..4744c1e2129 100644 --- a/content/svg/content/src/nsSVGSVGElement.cpp +++ b/content/svg/content/src/nsSVGSVGElement.cpp @@ -1180,7 +1180,7 @@ nsSVGSVGElement::GetLength(PRUint8 aCtxType) // nsSVGElement methods /* virtual */ gfxMatrix -nsSVGSVGElement::PrependLocalTransformTo(const gfxMatrix &aMatrix) const +nsSVGSVGElement::PrependLocalTransformsTo(const gfxMatrix &aMatrix) const { if (IsInner()) { float x, y; diff --git a/content/svg/content/src/nsSVGSVGElement.h b/content/svg/content/src/nsSVGSVGElement.h index b4589b74fd3..08852211c9f 100644 --- a/content/svg/content/src/nsSVGSVGElement.h +++ b/content/svg/content/src/nsSVGSVGElement.h @@ -186,7 +186,7 @@ public: virtual nsresult PreHandleEvent(nsEventChainPreVisitor& aVisitor); // nsSVGElement specializations: - virtual gfxMatrix PrependLocalTransformTo(const gfxMatrix &aMatrix) const; + virtual gfxMatrix PrependLocalTransformsTo(const gfxMatrix &aMatrix) const; // nsSVGSVGElement methods: float GetLength(PRUint8 mCtxType); diff --git a/content/svg/content/src/nsSVGUseElement.cpp b/content/svg/content/src/nsSVGUseElement.cpp index ce13b776c96..d25a45c92ac 100644 --- a/content/svg/content/src/nsSVGUseElement.cpp +++ b/content/svg/content/src/nsSVGUseElement.cpp @@ -488,10 +488,10 @@ nsSVGUseElement::UnlinkSource() // nsSVGElement methods /* virtual */ gfxMatrix -nsSVGUseElement::PrependLocalTransformTo(const gfxMatrix &aMatrix) const +nsSVGUseElement::PrependLocalTransformsTo(const gfxMatrix &aMatrix) const { // 'transform' attribute: - gfxMatrix matrix = nsSVGUseElementBase::PrependLocalTransformTo(aMatrix); + gfxMatrix matrix = nsSVGUseElementBase::PrependLocalTransformsTo(aMatrix); // now translate by our 'x' and 'y': float x, y; diff --git a/content/svg/content/src/nsSVGUseElement.h b/content/svg/content/src/nsSVGUseElement.h index 0a47f814e34..9be9ef50c12 100644 --- a/content/svg/content/src/nsSVGUseElement.h +++ b/content/svg/content/src/nsSVGUseElement.h @@ -103,7 +103,7 @@ public: void DestroyAnonymousContent(); // nsSVGElement specializations: - virtual gfxMatrix PrependLocalTransformTo(const gfxMatrix &aMatrix) const; + virtual gfxMatrix PrependLocalTransformsTo(const gfxMatrix &aMatrix) const; // nsIContent interface virtual nsresult Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const; diff --git a/layout/svg/base/src/nsSVGAFrame.cpp b/layout/svg/base/src/nsSVGAFrame.cpp index 219783bdaf8..a0eb9a48034 100644 --- a/layout/svg/base/src/nsSVGAFrame.cpp +++ b/layout/svg/base/src/nsSVGAFrame.cpp @@ -179,7 +179,7 @@ nsSVGAFrame::GetCanvasTM() nsSVGContainerFrame *parent = static_cast(mParent); nsSVGAElement *content = static_cast(mContent); - gfxMatrix tm = content->PrependLocalTransformTo(parent->GetCanvasTM()); + gfxMatrix tm = content->PrependLocalTransformsTo(parent->GetCanvasTM()); mCanvasTM = new gfxMatrix(tm); } diff --git a/layout/svg/base/src/nsSVGClipPathFrame.cpp b/layout/svg/base/src/nsSVGClipPathFrame.cpp index dbef8f4075e..79f86c20339 100644 --- a/layout/svg/base/src/nsSVGClipPathFrame.cpp +++ b/layout/svg/base/src/nsSVGClipPathFrame.cpp @@ -327,8 +327,8 @@ nsSVGClipPathFrame::GetCanvasTM() nsSVGClipPathElement *content = static_cast(mContent); gfxMatrix tm = - content->PrependLocalTransformTo(mClipParentMatrix ? - *mClipParentMatrix : gfxMatrix()); + content->PrependLocalTransformsTo(mClipParentMatrix ? + *mClipParentMatrix : gfxMatrix()); return nsSVGUtils::AdjustMatrixForUnits(tm, &content->mEnumAttributes[nsSVGClipPathElement::CLIPPATHUNITS], diff --git a/layout/svg/base/src/nsSVGContainerFrame.cpp b/layout/svg/base/src/nsSVGContainerFrame.cpp index f5c092bf918..45930aa1ad4 100644 --- a/layout/svg/base/src/nsSVGContainerFrame.cpp +++ b/layout/svg/base/src/nsSVGContainerFrame.cpp @@ -266,7 +266,7 @@ nsSVGDisplayContainerFrame::GetBBoxContribution( nsIContent *content = kid->GetContent(); if (content->IsSVG() && !content->IsNodeOfType(nsINode::eTEXT)) { transform = static_cast(content)-> - PrependLocalTransformTo(aToBBoxUserspace); + PrependLocalTransformsTo(aToBBoxUserspace); } // We need to include zero width/height vertical/horizontal lines, so we have // to use UnionEdges, but we must special case the first bbox so that we don't diff --git a/layout/svg/base/src/nsSVGForeignObjectFrame.cpp b/layout/svg/base/src/nsSVGForeignObjectFrame.cpp index 762dd9da130..289919a713d 100644 --- a/layout/svg/base/src/nsSVGForeignObjectFrame.cpp +++ b/layout/svg/base/src/nsSVGForeignObjectFrame.cpp @@ -495,7 +495,7 @@ nsSVGForeignObjectFrame::GetCanvasTM() nsSVGForeignObjectElement *content = static_cast(mContent); - gfxMatrix tm = content->PrependLocalTransformTo(parent->GetCanvasTM()); + gfxMatrix tm = content->PrependLocalTransformsTo(parent->GetCanvasTM()); mCanvasTM = new gfxMatrix(tm); } diff --git a/layout/svg/base/src/nsSVGGFrame.cpp b/layout/svg/base/src/nsSVGGFrame.cpp index ef949f53586..3f518cc3a2a 100644 --- a/layout/svg/base/src/nsSVGGFrame.cpp +++ b/layout/svg/base/src/nsSVGGFrame.cpp @@ -97,7 +97,7 @@ nsSVGGFrame::GetCanvasTM() nsSVGContainerFrame *parent = static_cast(mParent); nsSVGGraphicElement *content = static_cast(mContent); - gfxMatrix tm = content->PrependLocalTransformTo(parent->GetCanvasTM()); + gfxMatrix tm = content->PrependLocalTransformsTo(parent->GetCanvasTM()); mCanvasTM = new gfxMatrix(tm); } diff --git a/layout/svg/base/src/nsSVGInnerSVGFrame.cpp b/layout/svg/base/src/nsSVGInnerSVGFrame.cpp index 67016895cdf..6e3a98cd2fc 100644 --- a/layout/svg/base/src/nsSVGInnerSVGFrame.cpp +++ b/layout/svg/base/src/nsSVGInnerSVGFrame.cpp @@ -251,7 +251,7 @@ nsSVGInnerSVGFrame::GetCanvasTM() nsSVGContainerFrame *parent = static_cast(mParent); nsSVGSVGElement *content = static_cast(mContent); - gfxMatrix tm = content->PrependLocalTransformTo(parent->GetCanvasTM()); + gfxMatrix tm = content->PrependLocalTransformsTo(parent->GetCanvasTM()); mCanvasTM = new gfxMatrix(tm); } diff --git a/layout/svg/base/src/nsSVGPathGeometryFrame.cpp b/layout/svg/base/src/nsSVGPathGeometryFrame.cpp index d784831c8d6..e235a67a146 100644 --- a/layout/svg/base/src/nsSVGPathGeometryFrame.cpp +++ b/layout/svg/base/src/nsSVGPathGeometryFrame.cpp @@ -384,7 +384,7 @@ nsSVGPathGeometryFrame::GetCanvasTM() nsSVGContainerFrame *parent = static_cast(mParent); nsSVGGraphicElement *content = static_cast(mContent); - return content->PrependLocalTransformTo(parent->GetCanvasTM()); + return content->PrependLocalTransformsTo(parent->GetCanvasTM()); } //---------------------------------------------------------------------- diff --git a/layout/svg/base/src/nsSVGSwitchFrame.cpp b/layout/svg/base/src/nsSVGSwitchFrame.cpp index a8cb6bbde6e..f57c5798a39 100644 --- a/layout/svg/base/src/nsSVGSwitchFrame.cpp +++ b/layout/svg/base/src/nsSVGSwitchFrame.cpp @@ -208,7 +208,7 @@ nsSVGSwitchFrame::GetBBoxContribution(const gfxMatrix &aToBBoxUserspace, gfxMatrix transform = aToBBoxUserspace; if (content->IsSVG()) { transform = static_cast(content)-> - PrependLocalTransformTo(aToBBoxUserspace); + PrependLocalTransformsTo(aToBBoxUserspace); } return svgKid->GetBBoxContribution(transform, aFlags); } diff --git a/layout/svg/base/src/nsSVGTextFrame.cpp b/layout/svg/base/src/nsSVGTextFrame.cpp index 5c90cd1b89f..fa1c64195b4 100644 --- a/layout/svg/base/src/nsSVGTextFrame.cpp +++ b/layout/svg/base/src/nsSVGTextFrame.cpp @@ -274,7 +274,7 @@ nsSVGTextFrame::GetCanvasTM() nsSVGContainerFrame *parent = static_cast(mParent); nsSVGGraphicElement *content = static_cast(mContent); - gfxMatrix tm = content->PrependLocalTransformTo(parent->GetCanvasTM()); + gfxMatrix tm = content->PrependLocalTransformsTo(parent->GetCanvasTM()); mCanvasTM = new gfxMatrix(tm); } diff --git a/layout/svg/base/src/nsSVGTextPathFrame.cpp b/layout/svg/base/src/nsSVGTextPathFrame.cpp index dcfdf53b39e..4b9c42895c6 100644 --- a/layout/svg/base/src/nsSVGTextPathFrame.cpp +++ b/layout/svg/base/src/nsSVGTextPathFrame.cpp @@ -147,7 +147,7 @@ nsSVGTextPathFrame::GetFlattenedPath() nsSVGPathGeometryElement *element = static_cast(path->GetContent()); - return element->GetFlattenedPath(element->PrependLocalTransformTo(gfxMatrix())); + return element->GetFlattenedPath(element->PrependLocalTransformsTo(gfxMatrix())); } return nsnull; } diff --git a/layout/svg/base/src/nsSVGUtils.cpp b/layout/svg/base/src/nsSVGUtils.cpp index a441fffd944..2e9d7c4f5dd 100644 --- a/layout/svg/base/src/nsSVGUtils.cpp +++ b/layout/svg/base/src/nsSVGUtils.cpp @@ -460,14 +460,14 @@ nsSVGUtils::GetCTM(nsSVGElement *aElement, bool aScreenCTM) currentDoc->FlushPendingNotifications(Flush_Layout); } - gfxMatrix matrix = aElement->PrependLocalTransformTo(gfxMatrix()); + gfxMatrix matrix = aElement->PrependLocalTransformsTo(gfxMatrix()); nsSVGElement *element = aElement; nsIContent *ancestor = aElement->GetFlattenedTreeParent(); while (ancestor && ancestor->IsSVG() && ancestor->Tag() != nsGkAtoms::foreignObject) { element = static_cast(ancestor); - matrix *= element->PrependLocalTransformTo(gfxMatrix()); // i.e. *A*ppend + matrix *= element->PrependLocalTransformsTo(gfxMatrix()); // i.e. *A*ppend if (!aScreenCTM && EstablishesViewport(element)) { if (!element->NodeInfo()->Equals(nsGkAtoms::svg, kNameSpaceID_SVG) && !element->NodeInfo()->Equals(nsGkAtoms::symbol, kNameSpaceID_SVG)) {