зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1223215 (part 2) - Remove a ToSize() call. r=jwatt.
--HG-- extra : rebase_source : 7a0d71f4e7637d7142efe1ef5fa34aa4dbd9f998
This commit is contained in:
Родитель
4f45d5edc0
Коммит
0d79ed6fcd
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче