Remove Linux-specific synchronous plugin drawing code. (bug 1218688 part 2, r=jimm)

This commit is contained in:
David Anderson 2015-10-28 10:50:41 -07:00
Родитель 0a8c03ba8e
Коммит 489a63378f
1 изменённых файлов: 0 добавлений и 14 удалений

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

@ -1652,20 +1652,6 @@ nsPluginFrame::PaintPlugin(nsDisplayListBuilder* aBuilder,
mInstanceOwner->Paint(tmpRect, nullptr);
}
}
#elif defined(MOZ_X11)
if (mInstanceOwner) {
NPWindow *window;
mInstanceOwner->GetWindow(window);
if (window->type == NPWindowTypeDrawable) {
gfxRect frameGfxRect =
PresContext()->AppUnitsToGfxUnits(aPluginRect);
gfxRect dirtyGfxRect =
PresContext()->AppUnitsToGfxUnits(aDirtyRect);
gfxContext* ctx = aRenderingContext.ThebesContext();
mInstanceOwner->Paint(ctx, frameGfxRect, dirtyGfxRect);
}
}
#endif
}