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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user