Commit 88049146 authored by Carsten "Tomcat" Book's avatar Carsten "Tomcat" Book
Browse files

Backed out changeset 743fb3c48ed7 (bug 968647)

parent a832cb89
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1752,7 +1752,8 @@ bool nsChildView::PaintWindow(nsIntRegion aRegion)

void nsChildView::ReportMoveEvent()
{
   NotifyWindowMoved(mBounds.x, mBounds.y);
  if (mWidgetListener)
    mWidgetListener->WindowMoved(this, mBounds.x, mBounds.y);
}

void nsChildView::ReportSizeEvent()
+2 −1
Original line number Diff line number Diff line
@@ -1721,7 +1721,8 @@ nsCocoaWindow::ReportMoveEvent()
  UpdateBounds();

  // Dispatch the move event to Gecko
  NotifyWindowMoved(mBounds.x, mBounds.y);
  if (mWidgetListener)
    mWidgetListener->WindowMoved(this, mBounds.x, mBounds.y);

  mInReportMoveEvent = false;

+2 −1
Original line number Diff line number Diff line
@@ -2368,7 +2368,8 @@ nsWindow::OnConfigureEvent(GtkWidget *aWidget, GdkEventConfigure *aEvent)

    // XXX mozilla will invalidate the entire window after this move
    // complete.  wtf?
    NotifyWindowMoved(mBounds.x, mBounds.y);
    if (mWidgetListener)
      mWidgetListener->WindowMoved(this, mBounds.x, mBounds.y);

    return FALSE;
}
+2 −2
Original line number Diff line number Diff line
@@ -872,8 +872,8 @@ nsWindow::moveEvent(QMoveEvent* aEvent)
        return nsEventStatus_eIgnore;
    }

    NotifyWindowMoved(aEvent->pos().x(), aEvent->pos().y());
    return nsEventStatus_eConsumeNoDefault;
    bool moved = mWidgetListener->WindowMoved(this, aEvent->pos().x(), aEvent->pos().y());
    return moved ? nsEventStatus_eConsumeNoDefault : nsEventStatus_eIgnore;
}

nsEventStatus
+5 −3
Original line number Diff line number Diff line
@@ -5798,10 +5798,10 @@ void nsWindow::OnWindowPosChanged(WINDOWPOS* wp)
        break;
      case nsSizeMode_Maximized:
          PR_LOG(gWindowsLog, PR_LOG_ALWAYS, 
                 ("*** mSizeMode: nsSizeMode_Maximized\n"));
                 ("*** mSizeMode: nsSizeMode_Maximized\n");
        break;
      default:
          PR_LOG(gWindowsLog, PR_LOG_ALWAYS, ("*** mSizeMode: ??????\n"));
          PR_LOG(gWindowsLog, PR_LOG_ALWAYS, ("*** mSizeMode: ??????\n");
        break;
    };
#endif
@@ -5825,7 +5825,9 @@ void nsWindow::OnWindowPosChanged(WINDOWPOS* wp)
    mBounds.x = wp->x;
    mBounds.y = wp->y;

    NotifyWindowMoved(wp->x, wp->y);
    if (mWidgetListener) {
      mWidgetListener->WindowMoved(this, wp->x, wp->y);
    }
  }

  // Handle window size changes
Loading