Bug 945655 - Simplify the crop FilterNodeSoftware filter. r=roc

This commit is contained in:
Markus Stange 2013-12-10 14:50:40 +01:00
parent b2339b298c
commit c0ceead6e7

View File

@ -2814,13 +2814,7 @@ FilterNodeCropSoftware::SetAttribute(uint32_t aIndex,
TemporaryRef<DataSourceSurface>
FilterNodeCropSoftware::Render(const IntRect& aRect)
{
IntRect sourceRect = aRect.Intersect(mCropRect);
RefPtr<DataSourceSurface> input =
GetInputDataSourceSurface(IN_CROP_IN, sourceRect);
if (!input) {
return nullptr;
}
return GetDataSurfaceInRect(input, sourceRect, aRect, EDGE_MODE_NONE);
return GetInputDataSourceSurface(IN_CROP_IN, aRect.Intersect(mCropRect));
}
void