Bug 1316338 - Make PrintTargetThebes set mHasActivePage as appropriate. r=lsalzman

This commit is contained in:
Jonathan Watt 2016-11-02 12:41:19 +00:00
Родитель 9aad32cd64
Коммит 02c8d37eee
1 изменённых файлов: 9 добавлений и 0 удалений

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

@ -86,18 +86,27 @@ PrintTargetThebes::EndPrinting()
nsresult
PrintTargetThebes::AbortPrinting()
{
#ifdef DEBUG
mHasActivePage = false;
#endif
return mGfxSurface->AbortPrinting();
}
nsresult
PrintTargetThebes::BeginPage()
{
#ifdef DEBUG
mHasActivePage = true;
#endif
return mGfxSurface->BeginPage();
}
nsresult
PrintTargetThebes::EndPage()
{
#ifdef DEBUG
mHasActivePage = false;
#endif
return mGfxSurface->EndPage();
}