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

@@ -1495,6 +1495,11 @@ protected:
uint32_t* aSelectionEnd,
ErrorResult& aRv);
/**
* Override for nsImageLoadingContent.
*/
nsIContent* AsContent() override { return this; }
nsCOMPtr<nsIControllers> mControllers;
/*