mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Turned off image load skid marks
This commit is contained in:
parent
763628bb00
commit
63f55821d6
@ -356,14 +356,14 @@ nsHTMLImageLoader::GetDesiredSize(nsIPresContext* aPresContext,
|
||||
// shows up we will reflow to the new size.
|
||||
aDesiredSize.width = 1;
|
||||
aDesiredSize.height = 1;
|
||||
printf ("in image loader, dummy size of 1 returned\n");
|
||||
// printf ("in image loader, dummy size of 1 returned\n");
|
||||
} else {
|
||||
float p2t = aPresContext->GetPixelsToTwips();
|
||||
nsSize imageSize;
|
||||
mImageLoader->GetSize(imageSize);
|
||||
aDesiredSize.width = NSIntPixelsToTwips(imageSize.width, p2t);
|
||||
aDesiredSize.height = NSIntPixelsToTwips(imageSize.height, p2t);
|
||||
printf ("in image loader, real size of %d returned\n", aDesiredSize.width);
|
||||
// printf ("in image loader, real size of %d returned\n", aDesiredSize.width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -356,14 +356,14 @@ nsHTMLImageLoader::GetDesiredSize(nsIPresContext* aPresContext,
|
||||
// shows up we will reflow to the new size.
|
||||
aDesiredSize.width = 1;
|
||||
aDesiredSize.height = 1;
|
||||
printf ("in image loader, dummy size of 1 returned\n");
|
||||
// printf ("in image loader, dummy size of 1 returned\n");
|
||||
} else {
|
||||
float p2t = aPresContext->GetPixelsToTwips();
|
||||
nsSize imageSize;
|
||||
mImageLoader->GetSize(imageSize);
|
||||
aDesiredSize.width = NSIntPixelsToTwips(imageSize.width, p2t);
|
||||
aDesiredSize.height = NSIntPixelsToTwips(imageSize.height, p2t);
|
||||
printf ("in image loader, real size of %d returned\n", aDesiredSize.width);
|
||||
// printf ("in image loader, real size of %d returned\n", aDesiredSize.width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user