Part of the fix for bug #2485

git-svn-id: svn://10.0.0.236/trunk@17998 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-01-19 05:17:39 +00:00
parent 47bd3bb6e7
commit fb1c8ede06
2 changed files with 6 additions and 0 deletions

View File

@@ -194,6 +194,9 @@ nsHTMLImageLoader::GetDesiredSize(nsIPresContext* aPresContext,
// Determine whether the image has fixed content width and height
PRBool fixedContentWidth = aReflowState.HaveFixedContentWidth();
PRBool fixedContentHeight = aReflowState.HaveFixedContentHeight();
if (NS_INTRINSICSIZE == aReflowState.computedWidth) {
fixedContentWidth = PR_FALSE;
}
if (NS_INTRINSICSIZE == aReflowState.computedHeight) {
fixedContentHeight = PR_FALSE;
}