diff --git a/layout/generic/nsHTMLReflowState.cpp b/layout/generic/nsHTMLReflowState.cpp index 2a9e2c10cdd..1153601258c 100644 --- a/layout/generic/nsHTMLReflowState.cpp +++ b/layout/generic/nsHTMLReflowState.cpp @@ -378,8 +378,9 @@ nsHTMLReflowState::InitResizeFlags(nsPresContext* aPresContext) mCBReflowState) { mFlags.mVResize = mCBReflowState->mFlags.mVResize; } else { - mFlags.mVResize = mFlags.mHResize || NS_SUBTREE_DIRTY(frame); + mFlags.mVResize = mFlags.mHResize; } + mFlags.mVResize = mFlags.mVResize || NS_SUBTREE_DIRTY(frame); } else { // not 'auto' height mFlags.mVResize = frame->GetSize().height != diff --git a/layout/reftests/bugs/521525-1-ref.html b/layout/reftests/bugs/521525-1-ref.html new file mode 100644 index 00000000000..6cdf049e9af --- /dev/null +++ b/layout/reftests/bugs/521525-1-ref.html @@ -0,0 +1,7 @@ + +
+ + + + + diff --git a/layout/reftests/bugs/521525-1.html b/layout/reftests/bugs/521525-1.html new file mode 100644 index 00000000000..82af745995d --- /dev/null +++ b/layout/reftests/bugs/521525-1.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/layout/reftests/bugs/521525-2-ref.html b/layout/reftests/bugs/521525-2-ref.html new file mode 100644 index 00000000000..a7f8ef488f2 --- /dev/null +++ b/layout/reftests/bugs/521525-2-ref.html @@ -0,0 +1,7 @@ + + + + +