Bug 1134194 - Ensure that load events are dispatched for all cases when a responsive source updates. r=johns

MozReview-Commit-ID: DZmJCAIuhQb
This commit is contained in:
Josh Matthews
2016-01-06 15:40:09 -05:00
parent f15664e8a3
commit 6119192126
2 changed files with 10 additions and 26 deletions

View File

@@ -1151,7 +1151,12 @@ HTMLImageElement::UpdateResponsiveSource()
mResponsiveSelector = nullptr;
}
return !hadSelector || mResponsiveSelector;
// If we reach this point, either:
// - there was no selector originally, and there is not one now
// - there was no selector originally, and there is one now
// - there was a selector, and there is a different one now
// - there was a selector, and there is not one now
return hadSelector || mResponsiveSelector;
}
/*static */ bool