Closed Bug 388084 Opened 17 years ago Closed 17 years ago

[FIXr]Introduce computed height setter on reflow state

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta1

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

Attached patch Fix (deleted) — Splinter Review
This is the height version of bug 367442. We have some places that set computed heights too, and I want to add another one in bug 210094. Should just make this a method.
Attachment #272231 - Flags: superreview?(dbaron)
Attachment #272231 - Flags: review?(dbaron)
Oh, the only interesting changes are in nsHTMLReflowState.{h,cpp}, nsComboboxControlFrame.cpp, nsFieldSetFrame.cpp, and nsTableRowFrame.cpp
Comment on attachment 272231 [details] [diff] [review] Fix Not sure why you thought the combobox and fieldset changes were interesting. In nsFieldSetFrame, it looks like you wrote SetComputedWidth instead of SetComputedHeight. In nsTableRowFrame, it looks like you dropped the PR_MAX with 0. Was that intentional? It seems wrong. In nsTableCellFrame, mind changing the casts to const_cast? r+sr=dbaron with those things fixed. Sorry for the delay.
Attachment #272231 - Flags: superreview?(dbaron)
Attachment #272231 - Flags: superreview+
Attachment #272231 - Flags: review?(dbaron)
Attachment #272231 - Flags: review+
> Not sure why you thought the combobox and fieldset changes were interesting. They were more than a direct search/replace. Only relatively interesting... > In nsFieldSetFrame, it looks like you wrote SetComputedWidth instead Yikes. Good catch. > In nsTableRowFrame, it looks like you dropped the PR_MAX with 0. Again, good catch. That wasn't supposed to happen. > In nsTableCellFrame, mind changing the casts to const_cast? Sure thing.
Summary: [FIX]Introduce computed height setter on reflow state → [FIXr]Introduce computed height setter on reflow state
Comment on attachment 272231 [details] [diff] [review] Fix This replaces direct access to the mComputedHeight member of nsHTMLReflowState with a getter/setter pair. The setter makes sure to reinitialize the mVResize flag as needed, so that callers don't optimize away reflows that actually need to happen.
Attachment #272231 - Flags: approval1.9?
Comment on attachment 272231 [details] [diff] [review] Fix a181=dbaron
Attachment #272231 - Flags: approval1.9? → approval1.9+
er, a19=dbaron. At least I checked the right box.
Checked in with fixes per comment 2.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Depends on: 397367
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: