Bug 1148418 - Follow-up to avoid unused variable warning. r=bustage CLOSED TREE

This commit is contained in:
Jonathan Watt 2015-05-10 17:35:26 +01:00
Родитель 16ff100dbd
Коммит 18e66c80d4
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -2930,8 +2930,6 @@ void
nsDisplayBackgroundColor::Paint(nsDisplayListBuilder* aBuilder,
nsRenderingContext* aCtx)
{
DrawTarget& aDrawTarget = *aCtx->GetDrawTarget();
if (mColor == NS_RGBA(0, 0, 0, 0)) {
return;
}
@ -2944,6 +2942,8 @@ nsDisplayBackgroundColor::Paint(nsDisplayListBuilder* aBuilder,
// pixel shorter in rare cases. Disabled in favor of the old code for now.
// Note that the pref layout.css.devPixelsPerPx needs to be set to 1 to
// reproduce the bug.
DrawTarget& aDrawTarget = *aCtx->GetDrawTarget();
Rect rect = NSRectToSnappedRect(borderBox,
mFrame->PresContext()->AppUnitsPerDevPixel(),
aDrawTarget);