Bug 1382257 - Correct returning value of PaintBorderWithStyleBorder. r=mstange

We overwrites DrawResult returning from
nsCSSBorderImageRenderer::CreateBorderImageRenderer by the returning value of
DrawBorderImage, which is not right.

MozReview-Commit-ID: 1EeqU5hLyln

--HG--
extra : rebase_source : a78aa841795afa830b66da650a619f46230b10dd
This commit is contained in:
cku 2017-07-21 09:50:36 +08:00
Родитель c7c7a878ef
Коммит 27356c8da4
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -834,12 +834,12 @@ nsCSSRendering::PaintBorderWithStyleBorder(nsPresContext* aPresContext,
aStyleBorder, aDirtyRect, aSkipSides, aStyleBorder, aDirtyRect, aSkipSides,
irFlags, &result); irFlags, &result);
if (aStyleBorder.IsBorderImageLoaded()) { if (aStyleBorder.IsBorderImageLoaded()) {
if (!renderer) { if (renderer) {
return result; result &= renderer->DrawBorderImage(aPresContext, aRenderingContext,
aForFrame, aDirtyRect);
} }
return renderer->DrawBorderImage(aPresContext, aRenderingContext, return result;
aForFrame, aDirtyRect);
} }
} }