Bug 582057, part 0: Log the repaint region bounding rect in DumpPaintEvent. r=roc

This commit is contained in:
Chris Jones 2010-08-20 14:29:01 -05:00
Родитель 5881dbb78e
Коммит dc1963ed60
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -1347,12 +1347,15 @@ nsBaseWidget::debug_DumpPaintEvent(FILE * aFileOut,
if (!debug_GetCachedBoolPref("nglayout.debug.paint_dumping")) if (!debug_GetCachedBoolPref("nglayout.debug.paint_dumping"))
return; return;
nsIntRect rect = aPaintEvent->region.GetBounds();
fprintf(aFileOut, fprintf(aFileOut,
"%4d PAINT widget=%p name=%-12s id=%-8p rect=", "%4d PAINT widget=%p name=%-12s id=%-8p bounds-rect=%3d,%-3d %3d,%-3d",
_GetPrintCount(), _GetPrintCount(),
(void *) aWidget, (void *) aWidget,
aWidgetName.get(), aWidgetName.get(),
(void *) aWindowID); (void *) aWindowID,
rect.x, rect.y, rect.width, rect.height
);
fprintf(aFileOut,"\n"); fprintf(aFileOut,"\n");
} }