mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
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:
parent
f2ac7261a0
commit
ddf6d94c25
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user