mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
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:
parent
420b33c9e4
commit
679739496a
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user