Bug 1223215 (part 2) - Remove a ToSize() call. r=jwatt.

This commit is contained in:
Nicholas Nethercote 2015-11-08 20:23:54 -08:00
parent 4b5e540b60
commit 3de9c8703a

View File

@ -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