Bug 1315353 - Part 1: Fix the wrong image size of border-image-repeat while the content is SVG. r=dbaron

--HG--
extra : rebase_source : 645cfd900a937bfe3356f5cdce607bc08bacf34b
This commit is contained in:
Ethan Lin 2016-11-08 11:46:46 +08:00
Родитель 391e9fa548
Коммит dfc8522b08
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -5761,8 +5761,7 @@ nsImageRenderer::DrawBorderImageComponent(nsPresContext* aPresContext,
nsSize repeatSize;
nsRect fillRect(aFill);
nsRect tile = ComputeTile(fillRect, aHFill, aVFill, aUnitSize, repeatSize);
CSSIntSize imageSize(nsPresContext::AppUnitsToIntCSSPixels(srcRect.width),
nsPresContext::AppUnitsToIntCSSPixels(srcRect.height));
CSSIntSize imageSize(srcRect.width, srcRect.height);
return nsLayoutUtils::DrawBackgroundImage(*aRenderingContext.ThebesContext(),
aPresContext,
subImage, imageSize, samplingFilter,