diff --git a/layout/svg/base/src/nsSVGOuterSVGFrame.cpp b/layout/svg/base/src/nsSVGOuterSVGFrame.cpp index fcf469d5825..74655a1c7eb 100644 --- a/layout/svg/base/src/nsSVGOuterSVGFrame.cpp +++ b/layout/svg/base/src/nsSVGOuterSVGFrame.cpp @@ -1160,10 +1160,8 @@ nsSVGOuterSVGFrame::GetCoordContextProvider() // Our content element is the CoordContextProvider for our children: nsSVGCoordCtxProvider *provider; - mContent->QueryInterface(NS_GET_IID(nsSVGCoordCtxProvider), (void**)&provider); + CallQueryInterface(mContent, &provider); - NS_IF_ADDREF(provider); - return provider; }