Bug 1608501 - Part 3: Clean up image request in DestroyContent; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D82875
This commit is contained in:
Edgar Chen
2020-07-21 12:08:14 +00:00
parent 2a11cb3493
commit d043120c65
9 changed files with 32 additions and 0 deletions

View File

@@ -5825,6 +5825,11 @@ void HTMLInputElement::DoneCreatingElement() {
mShouldInitChecked = false;
}
void HTMLInputElement::DestroyContent() {
nsImageLoadingContent::Destroy();
TextControlElement::DestroyContent();
}
EventStates HTMLInputElement::IntrinsicState() const {
// If you add states here, and they're type-dependent, you need to add them
// to the type case in AfterSetAttr.