mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
b=24815. Make sure not to squelch NS_IMAGE_LOAD_STATUS_ERROR notifications
because the image frame needs these to call CantRenderReplacedElement()
This commit is contained in:
parent
12c821932f
commit
c849a94fa7
@ -147,7 +147,10 @@ nsHTMLImageLoader::Update(nsIPresContext* aPresContext,
|
||||
|
||||
// Pass on update to the user of this object if they want it
|
||||
if (mCallBack) {
|
||||
if (!mFlags.mSquelchCallback) {
|
||||
// We squelch the status size callback in the case where the client doesn't
|
||||
// want the size returned. However, don't squelch a status that says the image
|
||||
// failed to load
|
||||
if ((NS_IMAGE_LOAD_STATUS_ERROR & aStatus) || !mFlags.mSquelchCallback) {
|
||||
(*mCallBack)(aPresContext, this, aFrame, mClosure, aStatus);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user