Bug 1323186 - ensure the result of the operation is floating point. r=mattwoodrow

MozReview-Commit-ID: 59Cn494rh5l

--HG--
extra : rebase_source : dcdc06ed9db24029375d5a9cda5df032c1df3f92
This commit is contained in:
Andi-Bogdan Postelnicu 2016-12-13 16:11:22 +02:00
parent f2ac7261a0
commit ddf6d94c25

View File

@ -770,10 +770,10 @@ ConstructBorderRenderer(nsPresContext* aPresContext,
// Convert to dev pixels.
nscoord twipsPerPixel = aPresContext->DevPixelsToAppUnits(1);
Rect joinedBorderAreaPx = NSRectToRect(joinedBorderArea, twipsPerPixel);
Float borderWidths[4] = { Float(border.top / twipsPerPixel),
Float(border.right / twipsPerPixel),
Float(border.bottom / twipsPerPixel),
Float(border.left / twipsPerPixel) };
Float borderWidths[4] = { Float(border.top) / twipsPerPixel,
Float(border.right) / twipsPerPixel,
Float(border.bottom) / twipsPerPixel,
Float(border.left) / twipsPerPixel };
Rect dirtyRect = NSRectToRect(aDirtyRect, twipsPerPixel);
uint8_t borderStyles[4];