Closed Bug 264453 Opened 20 years ago Closed 10 years ago

Remove member variable nsLineLayout::mPresContext

Categories

(Core :: Layout: Block and Inline, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: rbs, Assigned: vhaarr+bmo)

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

The member variable nsLineLayout::mPresContext can be removed because it can
recovered at all the places where it is used.
Whiteboard: [good first bug]
This sorely needs a review :)
I've compiled and tested slashdot.org, etc, but I'm not at all sure I'm using
the right prescontext references.
Assignee: nobody → bugmail
Status: NEW → ASSIGNED
Attachment #169910 - Flags: review?(rbs)
I guess I'm not quite sure why we want to change this.  nsLineLayout objects are
generally allocated on the stack, and they're always temporary, so it's rather
like caching the result of GetPresContext() (which involves three dereferences)
at the beginning of a function so it can be used a few times.
I am having second thoughts following dbaron's comment above.
Someone feels like wontfixing, then?
I suggest this bug is WONTFIXed or at least have "good first bug" removed, if there is a uncertainty about if it should be fixed.
Resolving as WONTFIX per apparent consensus; feel free to reopen.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: