Fixing bug 312232. getScreenCTM fails in xulrunner builds due to uninitialized nsresult. Patched by Rob Adams <readams@readams.net>, r=me, sr=tor@acm.org
This commit is contained in:
Родитель
ff1555df60
Коммит
58db10a0de
|
@ -416,6 +416,8 @@ nsSVGMarkerElement::GetMarkerTransform(float aStrokeWidth,
|
|||
NS_IMETHODIMP
|
||||
nsSVGMarkerElement::GetViewboxToViewportTransform(nsIDOMSVGMatrix **_retval)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if (!mViewBoxToViewportTransform) {
|
||||
float viewportWidth;
|
||||
{
|
||||
|
@ -512,7 +514,7 @@ nsSVGMarkerElement::GetViewboxToViewportTransform(nsIDOMSVGMatrix **_retval)
|
|||
printf(" [b d f] = [ 0, %f, %f]\n", d, f);
|
||||
#endif
|
||||
|
||||
NS_NewSVGMatrix(getter_AddRefs(mViewBoxToViewportTransform),
|
||||
rv = NS_NewSVGMatrix(getter_AddRefs(mViewBoxToViewportTransform),
|
||||
a, 0.0f,
|
||||
0.0f, d,
|
||||
e, f);
|
||||
|
@ -520,7 +522,7 @@ nsSVGMarkerElement::GetViewboxToViewportTransform(nsIDOMSVGMatrix **_retval)
|
|||
|
||||
*_retval = mViewBoxToViewportTransform;
|
||||
NS_IF_ADDREF(*_retval);
|
||||
return NS_OK;
|
||||
return rv;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
|
@ -806,7 +806,7 @@ nsSVGSVGElement::GetElementById(const nsAString & elementId, nsIDOMElement **_re
|
|||
NS_IMETHODIMP
|
||||
nsSVGSVGElement::GetViewboxToViewportTransform(nsIDOMSVGMatrix **_retval)
|
||||
{
|
||||
nsresult rv;
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if (!mViewBoxToViewportTransform) {
|
||||
float viewportWidth;
|
||||
|
|
Загрузка…
Ссылка в новой задаче