mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 680786. nsImageFrame::OnStartContainer should not assume that its intrinsic size has changed. r=roc
This commit is contained in:
parent
c98f58f505
commit
af6a97a713
@ -548,10 +548,10 @@ nsImageFrame::OnStartContainer(imgIRequest *aRequest, imgIContainer *aImage)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
UpdateIntrinsicSize(aImage);
|
||||
UpdateIntrinsicRatio(aImage);
|
||||
PRBool intrinsicSizeChanged = UpdateIntrinsicSize(aImage);
|
||||
intrinsicSizeChanged = UpdateIntrinsicRatio(aImage) || intrinsicSizeChanged;
|
||||
|
||||
if (mState & IMAGE_GOTINITIALREFLOW) {
|
||||
if (intrinsicSizeChanged && (mState & IMAGE_GOTINITIALREFLOW)) {
|
||||
// Now we need to reflow if we have an unconstrained size and have
|
||||
// already gotten the initial reflow
|
||||
if (!(mState & IMAGE_SIZECONSTRAINED)) {
|
||||
|
Loading…
Reference in New Issue
Block a user