diff --git a/layout/svg/nsCSSFilterInstance.cpp b/layout/svg/nsCSSFilterInstance.cpp index f118264f56b..f6edc0f350d 100644 --- a/layout/svg/nsCSSFilterInstance.cpp +++ b/layout/svg/nsCSSFilterInstance.cpp @@ -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