Bug 1383395 - Remove an un-needed check for draw background image. r?cjku
Remove the the duplicate check for draw background image is false, in the PaintStyleImageLayerWithSC method,
as this is already covered by the preceding code.
MozReview-Commit-ID: L669Y4OjzE0
--- a/layout/painting/nsCSSRendering.cpp
+++ b/layout/painting/nsCSSRendering.cpp
@@ -2635,21 +2635,16 @@ nsCSSRendering::PaintStyleImageLayerWith
}
// The background color is rendered over the entire dirty area,
// even if the image isn't.
if (drawBackgroundColor && !isCanvasFrame) {
DrawBackgroundColor(clipState, &aRenderingCtx, appUnitsPerPixel);
}
- if (!drawBackgroundImage) {
- return DrawResult::SUCCESS; // No need to draw layer image, we can early
- // return now.
- }
-
// Compute the outermost boundary of the area that might be painted.
// Same coordinate space as aParams.borderArea & aParams.bgClipRect.
Sides skipSides = aParams.frame->GetSkipSides();
nsRect paintBorderArea =
::BoxDecorationRectForBackground(aParams.frame, aParams.borderArea,
skipSides, &aBorder);
nsRect clipBorderArea =
::BoxDecorationRectForBorder(aParams.frame, aParams.borderArea,