Closed
Bug 266890
Opened 21 years ago
Closed 21 years ago
Remove nsListboxScrollPortFrame
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
People
(Reporter: roc, Assigned: roc)
Details
Attachments
(2 files)
|
27.45 KB,
patch
|
bryner
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
|
15.21 KB,
patch
|
bryner
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•21 years ago
|
||
| Assignee | ||
Updated•21 years ago
|
Attachment #163987 -
Flags: superreview?(bryner)
Attachment #163987 -
Flags: review?(bryner)
Updated•21 years ago
|
Attachment #163987 -
Flags: superreview?(bryner)
Attachment #163987 -
Flags: superreview+
Attachment #163987 -
Flags: review?(bryner)
Attachment #163987 -
Flags: review+
| Assignee | ||
Comment 2•21 years ago
|
||
Checked in.
| Assignee | ||
Comment 3•21 years ago
|
||
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.
| Assignee | ||
Updated•21 years ago
|
Attachment #164681 -
Flags: superreview?(bryner)
Attachment #164681 -
Flags: review?(bryner)
Updated•21 years ago
|
Attachment #164681 -
Flags: superreview?(bryner)
Attachment #164681 -
Flags: superreview+
Attachment #164681 -
Flags: review?(bryner)
Attachment #164681 -
Flags: review+
| Assignee | ||
Comment 4•21 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 5•21 years ago
|
||
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?
| Assignee | ||
Comment 6•21 years ago
|
||
Yeah but I'm just moving old code
You need to log in
before you can comment on or make changes to this bug.
Description
•