Bug 1347639. Add nsImageLoadingContent::AsContent to make getting the relevant nsIContent* faster. r=qdot

MozReview-Commit-ID: 9sE3pbHwYbV
This commit is contained in:
Boris Zbarsky
2017-03-16 17:43:34 -04:00
parent 8cccd0bf0c
commit 26af9e4884
9 changed files with 38 additions and 23 deletions

View File

@@ -350,6 +350,9 @@ protected:
virtual nsresult AfterSetAttr(int32_t aNameSpaceID, nsIAtom* aName,
const nsAttrValue* aValue, bool aNotify) override;
// Override for nsImageLoadingContent.
nsIContent* AsContent() override { return this; }
// This is a weak reference that this element and the HTMLFormElement
// cooperate in maintaining.
HTMLFormElement* mForm;