Closed Bug 266890 Opened 20 years ago Closed 20 years ago

Remove nsListboxScrollPortFrame

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(2 files)

One of my ongoing projects is to eliminate nsScrollBoxFrame and make the
scrolled frame be a direct child of nsGfxScrollFrame. This requires that
nsScrollPortFrame and nsListboxScrollPortFrame also be eliminated since they
descend from nsScrollBoxFrame. I will attach a patch that gets rid of
nsListboxScrollPortFrame by moving its functionality into nsListBoxBodyFrame and
adding a new nsIFrame API, GetMinSizeForScrollArea so it can make
nsScrollBoxFrame do the right thing.
Attachment #163987 - Flags: superreview?(bryner)
Attachment #163987 - Flags: review?(bryner)
Attachment #163987 - Flags: superreview?(bryner)
Attachment #163987 - Flags: superreview+
Attachment #163987 - Flags: review?(bryner)
Attachment #163987 - Flags: review+
Now I'm removing nsScrollPortFrame. Things to note:
-- nsScrollPortFrame is the only subclass of nsScrollBoxFrame
-- We never create nsScrollBoxFrame directly, only nsScrollPortFrames
-- All nsScrollPortFrame does is override NeedsWidget

So I move the NeedsWidget implementation up to nsScrollBoxFrame, convert all
creators of nsScrollPortFrame to nsScrollBoxFrame and remove nsScrollPortFrame.
In addition to this patch I'll be cvs removing nsScrollPortFrame.h and
nsScrollPortFrame.cpp.
Attachment #164681 - Flags: superreview?(bryner)
Attachment #164681 - Flags: review?(bryner)
Attachment #164681 - Flags: superreview?(bryner)
Attachment #164681 - Flags: superreview+
Attachment #164681 - Flags: review?(bryner)
Attachment #164681 - Flags: review+
checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment on attachment 164681 [details] [diff] [review]
followup: remove nsScrollPortFrame

>+    nsIFormControlFrame* fcFrame;
>+    if ((NS_SUCCEEDED(parentFrame->QueryInterface(NS_GET_IID(nsIFormControlFrame), (void**)&fcFrame)))) {
Just wondering... aren't you supposed to use NS_REINTERPRET_CAST here?
Or alternatively declare void* fcFrame; Or use CallQueryInterface? Or?
Yeah but I'm just moving old code
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: