mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 402264: When we're scaling printed content, don't scale unconstrained heights. r+sr=roc a=damons
This commit is contained in:
parent
48d147ec82
commit
595fdb4786
@ -110,7 +110,9 @@ NS_IMETHODIMP nsPageFrame::Reflow(nsPresContext* aPresContext,
|
||||
avHeight);
|
||||
float scale = aPresContext->GetPageScale();
|
||||
maxSize.width = NSToCoordCeil(maxSize.width / scale);
|
||||
maxSize.height = NSToCoordCeil(maxSize.height / scale);
|
||||
if (maxSize.height != NS_UNCONSTRAINEDSIZE) {
|
||||
maxSize.height = NSToCoordCeil(maxSize.height / scale);
|
||||
}
|
||||
// Get the number of Twips per pixel from the PresContext
|
||||
nscoord onePixelInTwips = nsPresContext::CSSPixelsToAppUnits(1);
|
||||
// insurance against infinite reflow, when reflowing less than a pixel
|
||||
|
Loading…
Reference in New Issue
Block a user