Closed Bug 321294 Opened 20 years ago Closed 20 years ago

ReplaceFrame codepaths seems unused

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sicking, Unassigned)

References

()

Details

Attachments

(1 file)

On my new travels into layout code I ran into the ReplaceFrame function and wondered if it might be old remains from when we used to have a separate codepath for ReplaceChild (see bug 237566). Looks like that is largly the case. The only callers of this function (and DoReplaceFrame) is other implementations of the function and nsMathMLContainerFrame::WrapForeignFrames. See http://lxr.mozilla.org/mozilla/search?string=replaceframe Can we switch nsMathMLContainerFrame::WrapForeignFrames to use something else and kill this code?
Yes. WrapForeignFrames() is going to be removed anytime now when I check in the patch that I submitted for bug 309120.
Awesome! I'll gladly remove ReplaceFrame after that.
WrapForeignFrames() is now gone... (Since nsMathMLForeignFrameWrapper.cpp/.h are not used anymore, I plan to also cvs-removed them.)
Attached patch patch to fixSplinter Review
Attachment #208138 - Flags: superreview?(bzbarsky)
Attachment #208138 - Flags: review?(bzbarsky)
Attachment #208138 - Flags: superreview?(bzbarsky)
Attachment #208138 - Flags: superreview+
Attachment #208138 - Flags: review?(bzbarsky)
Attachment #208138 - Flags: review+
Checked in, thanks for the quick review
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Feel free to send me reviews if you don't specifically need bz.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: