Closed Bug 241151 Opened 20 years ago Closed 20 years ago

Get rid of nsSpringFrame

Categories

(Core :: Layout, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(1 file, 1 obsolete file)

In release builds, nsSpringFrame overrides one method on nsLeafBoxFrame. The
code for that method matches that on nsLeafBoxFrame.
In debug builds, nsSpringFrame overrides a second method on nsLeafBoxFrame
although that method is never called, as NS_NewLeafBoxFrame is not used.
nsLeafBoxFrame is the base class for a bunch of other frame classes as well.  If
you want to remove one it should be nsSpringFrame.

That said, GetFrameName is virtual and is used in debugging code, but probably
not all that important.
Summary: Get rid of either nsLeafBoxFrame or nsSpringFrame → Get rid of nsSpringFrame
Attached patch Proposed patch (obsolete) — Splinter Review
The GetFrameName issue is just that anybody who uses it needs to know that
<xul:spacer> now returns LeafBoxFrame instead of SpringFrame.
Assignee: nobody → neil.parkwaycc.co.uk
Status: NEW → ASSIGNED
Attachment #146676 - Attachment is obsolete: true
Attachment #146683 - Flags: superreview?(roc)
Attachment #146683 - Flags: review?(roc)
Comment on attachment 146683 [details] [diff] [review]
Forgot to diff Makefile.in

if only all reviews were this easy.
Attachment #146683 - Flags: superreview?(roc)
Attachment #146683 - Flags: superreview+
Attachment #146683 - Flags: review?(roc)
Attachment #146683 - Flags: review+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: