Bug 1366474: Devirtualize Element::{Get,Set}SMILOverrideStyleDeclaration. r?birtles
MozReview-Commit-ID: JYLt6lE0bZt
--- a/dom/base/Element.h
+++ b/dom/base/Element.h
@@ -324,25 +324,25 @@ public:
virtual nsresult SetInlineStyleDeclaration(DeclarationBlock* aDeclaration,
const nsAString* aSerialized,
bool aNotify);
/**
* Get the SMIL override style declaration for this element. If the
* rule hasn't been created, this method simply returns null.
*/
- virtual DeclarationBlock* GetSMILOverrideStyleDeclaration();
+ DeclarationBlock* GetSMILOverrideStyleDeclaration();
/**
* Set the SMIL override style declaration for this element. If
* aNotify is true, this method will notify the document's pres
* context, so that the style changes will be noticed.
*/
- virtual nsresult SetSMILOverrideStyleDeclaration(
- DeclarationBlock* aDeclaration, bool aNotify);
+ nsresult SetSMILOverrideStyleDeclaration(DeclarationBlock* aDeclaration,
+ bool aNotify);
/**
* Returns a new nsISMILAttr that allows the caller to animate the given
* attribute on this element.
*/
virtual UniquePtr<nsISMILAttr> GetAnimatedAttr(int32_t aNamespaceID,
nsIAtom* aName)
{