Closed Bug 769320 Opened 12 years ago Closed 8 years ago

Inconsistency between comment and code in nsWindow::Resize

Categories

(Core Graveyard :: Widget: Qt, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: s_j_newbury, Unassigned)

Details

In widget/qt/nsWindow.cpp:

    // synthesize a resize event if this isn't a toplevel
    if (mIsTopLevel || mListenForResizes) {
        nsIntRect rect(mBounds.x, mBounds.y, aWidth, aHeight);
        nsEventStatus status;
        DispatchResizeEvent(rect, status);
    }

Notice the comment reads "if this isn't a toplevel", yet the code checks for mIsTopLevel.  It's not clear which is correct, but I suspect it's the comment.
In bug 1282866, I have removed the QT code from the Firefox tree with the approval of the active peer. That code is not currently maintained by any team.

I have looked through the bugs in the Widget: Qt bugzilla component and I believe all of these are no longer relevant because the Qt code has been removed. If you believe that this bug is still valid, please move it to another more appropriate bugzilla component as you reopen it.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.