Bug 266513 GTK dependent windows not persisting position correctly, roc suggests backing out part of his patch to bug 264245 r+sr=blizzard

This commit is contained in:
neil%parkwaycc.co.uk 2004-12-16 23:43:42 +00:00
parent 420b33c9e4
commit 679739496a

View File

@ -436,16 +436,7 @@ PRBool nsWindow::GetWindowPos(nscoord &x, nscoord &y)
if ((mCachedX==-1) && (mCachedY==-1)) { /* Not cached */
gint xpos, ypos;
if (mParent)
{
// Just ask our parent; it might have its position cached, so
// we can save a bunch of work.
nsRect newRect;
mParent->WidgetToScreen(mBounds, newRect);
xpos = newRect.x;
ypos = newRect.y;
}
else if (mMozArea)
if (mMozArea)
{
if (mMozArea->window)
{