mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 456522 fix 4 warnings of nsPresContext.h r+sr=roc
This commit is contained in:
parent
0f9769b8ee
commit
2ec0d6704d
@ -489,15 +489,15 @@ public:
|
||||
|
||||
static nscoord CSSPixelsToAppUnits(float aPixels)
|
||||
{ return NSFloatPixelsToAppUnits(aPixels,
|
||||
nsIDeviceContext::AppUnitsPerCSSPixel()); }
|
||||
float(nsIDeviceContext::AppUnitsPerCSSPixel())); }
|
||||
|
||||
static PRInt32 AppUnitsToIntCSSPixels(nscoord aAppUnits)
|
||||
{ return NSAppUnitsToIntPixels(aAppUnits,
|
||||
nsIDeviceContext::AppUnitsPerCSSPixel()); }
|
||||
float(nsIDeviceContext::AppUnitsPerCSSPixel())); }
|
||||
|
||||
static float AppUnitsToFloatCSSPixels(nscoord aAppUnits)
|
||||
{ return NSAppUnitsToFloatPixels(aAppUnits,
|
||||
nsIDeviceContext::AppUnitsPerCSSPixel()); }
|
||||
float(nsIDeviceContext::AppUnitsPerCSSPixel())); }
|
||||
|
||||
nscoord DevPixelsToAppUnits(PRInt32 aPixels) const
|
||||
{ return NSIntPixelsToAppUnits(aPixels,
|
||||
@ -505,7 +505,7 @@ public:
|
||||
|
||||
PRInt32 AppUnitsToDevPixels(nscoord aAppUnits) const
|
||||
{ return NSAppUnitsToIntPixels(aAppUnits,
|
||||
mDeviceContext->AppUnitsPerDevPixel()); }
|
||||
float(mDeviceContext->AppUnitsPerDevPixel())); }
|
||||
|
||||
// If there is a remainder, it is rounded to nearest app units.
|
||||
nscoord GfxUnitsToAppUnits(gfxFloat aGfxUnits) const
|
||||
|
Loading…
Reference in New Issue
Block a user