mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1223215 (part 2) - Remove a ToSize() call. r=jwatt.
This commit is contained in:
parent
4b5e540b60
commit
3de9c8703a
@ -324,8 +324,8 @@ nsCSSFilterInstance::BlurRadiusToFilterSpace(nscoord aRadiusInFrameSpace)
|
||||
nsPresContext::AppUnitsToFloatCSSPixels(aRadiusInFrameSpace);
|
||||
|
||||
// Convert the radius to filter space.
|
||||
gfxSize radiusInFilterSpace(radiusInFrameSpaceInCSSPx,
|
||||
radiusInFrameSpaceInCSSPx);
|
||||
Size radiusInFilterSpace(radiusInFrameSpaceInCSSPx,
|
||||
radiusInFrameSpaceInCSSPx);
|
||||
gfxSize frameSpaceInCSSPxToFilterSpaceScale =
|
||||
mFrameSpaceInCSSPxToFilterSpaceTransform.ScaleFactors(true);
|
||||
radiusInFilterSpace.Scale(frameSpaceInCSSPxToFilterSpaceScale.width,
|
||||
@ -336,11 +336,11 @@ nsCSSFilterInstance::BlurRadiusToFilterSpace(nscoord aRadiusInFrameSpace)
|
||||
NS_NOTREACHED("we shouldn't have parsed a negative radius in the style");
|
||||
return Size();
|
||||
}
|
||||
gfxFloat maxStdDeviation = (gfxFloat)kMaxStdDeviation;
|
||||
Float maxStdDeviation = (Float)kMaxStdDeviation;
|
||||
radiusInFilterSpace.width = std::min(radiusInFilterSpace.width, maxStdDeviation);
|
||||
radiusInFilterSpace.height = std::min(radiusInFilterSpace.height, maxStdDeviation);
|
||||
|
||||
return ToSize(radiusInFilterSpace);
|
||||
return radiusInFilterSpace;
|
||||
}
|
||||
|
||||
IntPoint
|
||||
|
Loading…
Reference in New Issue
Block a user