mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge for build bustage fix
This commit is contained in:
commit
db76c52702
@ -551,8 +551,9 @@ nsFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
|
||||
const nsStyleBackground *newBG = GetStyleBackground();
|
||||
NS_FOR_VISIBLE_BACKGROUND_LAYERS_BACK_TO_FRONT(i, oldBG) {
|
||||
imgIRequest *oldImage = oldBG->mLayers[i].mImage.mRequest;
|
||||
imgIRequest *newImage =
|
||||
(i < newBG->mImageCount) ? newBG->mLayers[i].mImage.mRequest : nsnull;
|
||||
imgIRequest *newImage = i < newBG->mImageCount
|
||||
? newBG->mLayers[i].mImage.mRequest.get()
|
||||
: nsnull;
|
||||
if (oldImage && !EqualImages(oldImage, newImage)) {
|
||||
// stop the image loading for the frame, the image has changed
|
||||
PresContext()->SetImageLoaders(this,
|
||||
|
Loading…
Reference in New Issue
Block a user