Bug 698534 - Fix build bustage when smil is disabled. r=dholbert

This commit is contained in:
Mounir Lamouri 2011-11-01 20:22:30 +01:00
parent 1f7bfdb616
commit 59e3de7bbf
3 changed files with 13 additions and 8 deletions

View File

@ -113,13 +113,6 @@ nsSVGClass::ToDOMAnimatedString(nsIDOMSVGAnimatedString **aResult,
return NS_OK;
}
#ifdef MOZ_SMIL
nsISMILAttr*
nsSVGClass::ToSMILAttr(nsSVGStylableElement *aSVGElement)
{
return new SMILString(this, aSVGElement);
}
NS_IMETHODIMP
nsSVGClass::DOMAnimatedString::GetAnimVal(nsAString& aResult)
{
@ -130,6 +123,13 @@ nsSVGClass::DOMAnimatedString::GetAnimVal(nsAString& aResult)
return NS_OK;
}
#ifdef MOZ_SMIL
nsISMILAttr*
nsSVGClass::ToSMILAttr(nsSVGStylableElement *aSVGElement)
{
return new SMILString(this, aSVGElement);
}
nsresult
nsSVGClass::SMILString::ValueFromString(const nsAString& aStr,
const nsISMILAnimationElement* /*aSrcElement*/,

View File

@ -41,9 +41,12 @@
#include "nsAutoPtr.h"
#include "nsCycleCollectionParticipant.h"
#include "nsString.h"
#include "nsISMILAttr.h"
#include "nsDOMError.h"
#ifdef MOZ_SMIL
#include "nsISMILAttr.h"
#endif // MOZ_SMIL
class nsSVGStylableElement;
class nsSVGClass

View File

@ -149,6 +149,7 @@ nsSVGStylableElement::DidAnimateClass()
}
}
#ifdef MOZ_SMIL
nsISMILAttr*
nsSVGStylableElement::GetAnimatedAttr(PRInt32 aNamespaceID, nsIAtom* aName)
{
@ -158,3 +159,4 @@ nsSVGStylableElement::GetAnimatedAttr(PRInt32 aNamespaceID, nsIAtom* aName)
}
return nsSVGStylableElementBase::GetAnimatedAttr(aNamespaceID, aName);
}
#endif // MOZ_SMIL