зеркало из https://github.com/mozilla/pjs.git
Bug 680786. nsImageFrame::OnStartContainer should not assume that its intrinsic size has changed. r=roc
This commit is contained in:
Родитель
a3b8c61917
Коммит
6f48c2a533
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче