Bug 1366474: While we're here, devirtualize GetSMILOverrideStyle too. r?birtles
Also, update an outdated comment that was leftover.
MozReview-Commit-ID: CC865rj3o3S
--- a/dom/base/Element.h
+++ b/dom/base/Element.h
@@ -352,17 +352,17 @@ public:
/**
* Get the SMIL override style for this element. This is a style declaration
* that is applied *after* the inline style, and it can be used e.g. to store
* animated style values.
*
* Note: This method is analogous to the 'GetStyle' method in
* nsGenericHTMLElement and nsStyledElement.
*/
- virtual nsICSSDeclaration* GetSMILOverrideStyle();
+ nsICSSDeclaration* GetSMILOverrideStyle();
/**
* Returns if the element is labelable as per HTML specification.
*/
virtual bool IsLabelable() const;
/**
* Returns if the element is interactive content as per HTML specification.
--- a/dom/base/FragmentOrElement.h
+++ b/dom/base/FragmentOrElement.h
@@ -270,17 +270,17 @@ public:
/**
* The .dataset attribute.
* @see nsGenericHTMLElement::GetDataset
*/
nsDOMStringMap* mDataset; // [Weak]
/**
* SMIL Overridde style rules (for SMIL animation of CSS properties)
- * @see nsIContent::GetSMILOverrideStyle
+ * @see Element::GetSMILOverrideStyle
*/
nsCOMPtr<nsICSSDeclaration> mSMILOverrideStyle;
/**
* Holds any SMIL override style declaration for this element.
*/
RefPtr<mozilla::DeclarationBlock> mSMILOverrideStyleDeclaration;