From 4dab4da492bb7f3fe13e5f9f9675c8c3a72b2af4 Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Fri, 17 Aug 2001 09:56:46 +0000 Subject: [PATCH] Fixing SVG bustage. --- layout/svg/base/src/nsPolygonFrame.cpp | 10 +++++----- layout/svg/base/src/nsSVGPathFrame.cpp | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/layout/svg/base/src/nsPolygonFrame.cpp b/layout/svg/base/src/nsPolygonFrame.cpp index 6253a3842dd..fecdd978f80 100644 --- a/layout/svg/base/src/nsPolygonFrame.cpp +++ b/layout/svg/base/src/nsPolygonFrame.cpp @@ -105,7 +105,7 @@ nsPolygonFrame::Init(nsIPresContext* aPresContext, nsAutoString type; - mContent->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::type, type); + mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::type, type); if (type.EqualsIgnoreCase(NS_ConvertASCIItoUCS2("swatch")) || type.IsEmpty()) { @@ -155,14 +155,14 @@ nsPolygonFrame::Reflow(nsIPresContext* aPresContext, } nsAutoString coordStr; - nsresult res = mContent->GetAttribute(kNameSpaceID_None, nsSVGAtoms::x, coordStr); + nsresult res = mContent->GetAttr(kNameSpaceID_None, nsSVGAtoms::x, coordStr); if (NS_SUCCEEDED(res)) { char * s = coordStr.ToNewCString(); mX = NSIntPixelsToTwips(atoi(s), p2t*scale); delete [] s; } - res = mContent->GetAttribute(kNameSpaceID_None, nsSVGAtoms::y, coordStr); + res = mContent->GetAttr(kNameSpaceID_None, nsSVGAtoms::y, coordStr); if (NS_SUCCEEDED(res)) { char * s = coordStr.ToNewCString(); mY = NSIntPixelsToTwips(atoi(s), p2t*scale); @@ -235,7 +235,7 @@ nsPolygonFrame::GetPoints() } nsAutoString pointsStr; - nsresult res = mContent->GetAttribute(kNameSpaceID_None, nsSVGAtoms::points, pointsStr); + nsresult res = mContent->GetAttr(kNameSpaceID_None, nsSVGAtoms::points, pointsStr); char * ps = pointsStr.ToNewCString(); char seps[] = " "; @@ -316,7 +316,7 @@ NS_METHOD nsPolygonFrame::RenderPoints(nsIRenderingContext& aRenderingContext, const nsPoint aPoints[], PRInt32 aNumPoints) { //nsAutoString fillStr; - //nsresult res = mContent->GetAttribute(kNameSpaceID_None, nsSVGAtoms::fill, fillStr); + //nsresult res = mContent->GetAttr(kNameSpaceID_None, nsSVGAtoms::fill, fillStr); //if (NS_SUCCEEDED(res)) { aRenderingContext.FillPolygon(aPoints, aNumPoints); //} else { diff --git a/layout/svg/base/src/nsSVGPathFrame.cpp b/layout/svg/base/src/nsSVGPathFrame.cpp index 4def2633a54..a129cd4bcf4 100644 --- a/layout/svg/base/src/nsSVGPathFrame.cpp +++ b/layout/svg/base/src/nsSVGPathFrame.cpp @@ -93,7 +93,7 @@ nsSVGPathFrame::Init(nsIPresContext* aPresContext, nsAutoString type; - mContent->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::type, type); + mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::type, type); if (type.EqualsIgnoreCase(NS_ConvertASCIItoUCS2("swatch")) || type.IsEmpty()) { @@ -143,14 +143,14 @@ nsSVGPathFrame::Reflow(nsIPresContext* aPresContext, } nsAutoString coordStr; - nsresult res = mContent->GetAttribute(kNameSpaceID_None, nsSVGAtoms::x, coordStr); + nsresult res = mContent->GetAttr(kNameSpaceID_None, nsSVGAtoms::x, coordStr); if (NS_SUCCEEDED(res)) { char * s = coordStr.ToNewCString(); mX = NSIntPixelsToTwips(atoi(s), p2t*scale); delete [] s; } - res = mContent->GetAttribute(kNameSpaceID_None, nsSVGAtoms::y, coordStr); + res = mContent->GetAttr(kNameSpaceID_None, nsSVGAtoms::y, coordStr); if (NS_SUCCEEDED(res)) { char * s = coordStr.ToNewCString(); mY = NSIntPixelsToTwips(atoi(s), p2t*scale); @@ -158,7 +158,7 @@ nsSVGPathFrame::Reflow(nsIPresContext* aPresContext, } nsAutoString pathStr; - res = mContent->GetAttribute(kNameSpaceID_None, nsSVGAtoms::d, pathStr); + res = mContent->GetAttr(kNameSpaceID_None, nsSVGAtoms::d, pathStr); if (NS_SUCCEEDED(res)) { char * s = pathStr.ToNewCString(); // parse path commands here