diff options
Diffstat (limited to 'dom/html/HTMLContentElement.h')
-rw-r--r-- | dom/html/HTMLContentElement.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/dom/html/HTMLContentElement.h b/dom/html/HTMLContentElement.h index d2491a792..630e26d17 100644 --- a/dom/html/HTMLContentElement.h +++ b/dom/html/HTMLContentElement.h @@ -29,14 +29,7 @@ public: NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(HTMLContentElement, nsGenericHTMLElement) - static HTMLContentElement* FromContent(nsIContent* aContent) - { - if (aContent->IsHTMLContentElement()) { - return static_cast<HTMLContentElement*>(aContent); - } - - return nullptr; - } + NS_IMPL_FROMCONTENT_HELPER(HTMLContentElement, IsHTMLContentElement()) virtual bool IsHTMLContentElement() const override { return true; } |