зеркало из 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"))
|
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");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче