Bug 473334. Devirtualize some nsSVGSVGElement methods. r=jwatt,sr=roc

--HG--
extra : rebase_source : 7a14a6c7697283a490696c43f3f62a23ad1beba4
This commit is contained in:
Craig Topper 2009-01-16 21:16:46 +13:00
Родитель 04ef5a295c
Коммит 523efb98ec
2 изменённых файлов: 7 добавлений и 25 удалений

Просмотреть файл

@ -1061,7 +1061,7 @@ nsSVGSVGElement::SetZoomAndPan(PRUint16 aZoomAndPan)
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// helper methods for implementing SVGZoomEvent: // helper methods for implementing SVGZoomEvent:
NS_IMETHODIMP nsresult
nsSVGSVGElement::GetCurrentScaleNumber(nsIDOMSVGNumber **aResult) nsSVGSVGElement::GetCurrentScaleNumber(nsIDOMSVGNumber **aResult)
{ {
*aResult = mCurrentScale; *aResult = mCurrentScale;
@ -1118,7 +1118,7 @@ nsSVGSVGElement::SetCurrentTranslate(float x, float y)
return NS_OK; return NS_OK;
} }
NS_IMETHODIMP_(void) void
nsSVGSVGElement::RecordCurrentScaleTranslate() nsSVGSVGElement::RecordCurrentScaleTranslate()
{ {
// IMPORTANT: If either mCurrentTranslate *or* mCurrentScale is changed then // IMPORTANT: If either mCurrentTranslate *or* mCurrentScale is changed then
@ -1134,24 +1134,6 @@ nsSVGSVGElement::RecordCurrentScaleTranslate()
mCurrentTranslate->GetY(&mPreviousTranslate_y); mCurrentTranslate->GetY(&mPreviousTranslate_y);
} }
NS_IMETHODIMP_(float)
nsSVGSVGElement::GetPreviousTranslate_x()
{
return mPreviousTranslate_x;
}
NS_IMETHODIMP_(float)
nsSVGSVGElement::GetPreviousTranslate_y()
{
return mPreviousTranslate_y;
}
NS_IMETHODIMP_(float)
nsSVGSVGElement::GetPreviousScale()
{
return mPreviousScale;
}
#ifdef MOZ_SMIL #ifdef MOZ_SMIL
nsSMILTimeContainer* nsSMILTimeContainer*
nsSVGSVGElement::GetTimedDocumentRoot() nsSVGSVGElement::GetTimedDocumentRoot()

Просмотреть файл

@ -105,7 +105,7 @@ public:
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGSVGElementBase::) NS_FORWARD_NSIDOMSVGELEMENT(nsSVGSVGElementBase::)
// helper methods for implementing SVGZoomEvent: // helper methods for implementing SVGZoomEvent:
NS_IMETHOD GetCurrentScaleNumber(nsIDOMSVGNumber **aResult); nsresult GetCurrentScaleNumber(nsIDOMSVGNumber **aResult);
/** /**
* For use by zoom controls to allow currentScale, currentTranslate.x and * For use by zoom controls to allow currentScale, currentTranslate.x and
@ -125,15 +125,15 @@ public:
* Record the current values of currentScale, currentTranslate.x and * Record the current values of currentScale, currentTranslate.x and
* currentTranslate.y prior to changing the value of one of them. * currentTranslate.y prior to changing the value of one of them.
*/ */
NS_IMETHOD_(void) RecordCurrentScaleTranslate(); void RecordCurrentScaleTranslate();
/** /**
* Retrieve the value of currentScale, currentTranslate.x or * Retrieve the value of currentScale, currentTranslate.x or
* currentTranslate.y prior to the last change made to any one of them. * currentTranslate.y prior to the last change made to any one of them.
*/ */
NS_IMETHOD_(float) GetPreviousTranslate_x(); float GetPreviousTranslate_x() { return mPreviousTranslate_x; }
NS_IMETHOD_(float) GetPreviousTranslate_y(); float GetPreviousTranslate_y() { return mPreviousTranslate_y; }
NS_IMETHOD_(float) GetPreviousScale(); float GetPreviousScale() { return mPreviousScale; }
#ifdef MOZ_SMIL #ifdef MOZ_SMIL
nsSMILTimeContainer* GetTimedDocumentRoot(); nsSMILTimeContainer* GetTimedDocumentRoot();