зеркало из https://github.com/mozilla/pjs.git
Bug 582057, part 0: Log the repaint region bounding rect in DumpPaintEvent. r=roc
This commit is contained in:
Родитель
5881dbb78e
Коммит
dc1963ed60
|
@ -1347,12 +1347,15 @@ nsBaseWidget::debug_DumpPaintEvent(FILE * aFileOut,
|
|||
if (!debug_GetCachedBoolPref("nglayout.debug.paint_dumping"))
|
||||
return;
|
||||
|
||||
nsIntRect rect = aPaintEvent->region.GetBounds();
|
||||
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(),
|
||||
(void *) aWidget,
|
||||
aWidgetName.get(),
|
||||
(void *) aWindowID);
|
||||
(void *) aWindowID,
|
||||
rect.x, rect.y, rect.width, rect.height
|
||||
);
|
||||
|
||||
fprintf(aFileOut,"\n");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче