Closed
Bug 388084
Opened 17 years ago
Closed 17 years ago
[FIXr]Introduce computed height setter on reflow state
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9beta1
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
(deleted),
patch
|
dbaron
:
review+
dbaron
:
superreview+
dbaron
:
approval1.9+
|
Details | Diff | 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)
Assignee | ||
Comment 1•17 years ago
|
||
Oh, the only interesting changes are in nsHTMLReflowState.{h,cpp}, nsComboboxControlFrame.cpp, nsFieldSetFrame.cpp, and nsTableRowFrame.cpp
Comment 2•17 years ago
|
||
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+
Assignee | ||
Comment 3•17 years ago
|
||
> 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.
Assignee | ||
Updated•17 years ago
|
Summary: [FIX]Introduce computed height setter on reflow state → [FIXr]Introduce computed height setter on reflow state
Assignee | ||
Comment 4•17 years ago
|
||
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 5•17 years ago
|
||
Comment on attachment 272231 [details] [diff] [review]
Fix
a181=dbaron
Attachment #272231 -
Flags: approval1.9? → approval1.9+
Comment 6•17 years ago
|
||
er, a19=dbaron. At least I checked the right box.
Assignee | ||
Comment 7•17 years ago
|
||
Checked in with fixes per comment 2.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•