зеркало из https://github.com/mozilla/pjs.git
Made View list a little more helpful about widget size and location
This commit is contained in:
Родитель
0c7dae79f2
Коммит
c1844f6386
|
@ -927,7 +927,15 @@ nsresult nsView :: LoadWidget(const nsCID &aClassIID)
|
|||
void nsView :: List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
for (PRInt32 i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||
fprintf(out, "%p win=%p ", this, mWindow);
|
||||
fprintf(out, "%p ", this);
|
||||
if (nsnull != mWindow) {
|
||||
nsRect windowBounds;
|
||||
mWindow->GetBounds(windowBounds);
|
||||
fprintf(out, "(widget=%p pos={%d,%d,%d,%d}) ",
|
||||
mWindow,
|
||||
windowBounds.x, windowBounds.y,
|
||||
windowBounds.width, windowBounds.height);
|
||||
}
|
||||
out << mBounds;
|
||||
fprintf(out, " z=%d vis=%d opc=%1.3f <\n", mZindex, mVis, mOpacity);
|
||||
nsIView* kid = mFirstChild;
|
||||
|
|
Загрузка…
Ссылка в новой задаче