Closed Bug 815972 Opened 13 years ago Closed 13 years ago

Remove unneeded nsDisplayListCollection from nsBlockFrame.cpp:DisplayLine()

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

As hinted by the "then again" in bug 808767 comment 5, we have a nsDisplayListCollection in nsBlockFrame.cpp's "DisplayLine" helper-method that we don't actually need. Filing this bug on removing it.
Attached patch fixSplinter Review
This patch: (a) removes collection & directly operates on aLists instead. (b) scopes |nsresult rv| to inside the loop. (c) pulls the "lineInline ? nsIFrame::DISPLAY_CHILD_INLINE : 0" conditional out of the loop, since it will always evaluate to the same thing, and it makes the BuildDisplayListForChild function-call a little less bulky. Try run w/ Linux32 & Mac: https://tbpl.mozilla.org/?tree=Try&rev=97c11cee34d2
Attachment #685988 - Flags: review?(roc)
(The try run doesn't include parts (b) or (c), but those parts have basically zero chance of affecting behavior.)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Depends on: 886313
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: