Closed
Bug 372768
Opened 17 years ago
Closed 17 years ago
{inc}Setting nowrap attribute dynamically does not change layout like it should
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: sharparrow1)
References
Details
(Keywords: testcase)
Attachments
(3 files)
234 bytes,
text/html
|
Details | |
140 bytes,
text/html
|
Details | |
1.31 KB,
patch
|
bzbarsky
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
The testcase is based on reftests/bugs/362594-1a.html. Quirks-only?
Reporter | ||
Comment 1•17 years ago
|
||
If you use DOM Inspector to remove the <BODY> and put it back, you'll see the table's width change.
Reporter | ||
Comment 2•17 years ago
|
||
Comment 3•17 years ago
|
||
So the issue is that adding the nowrap attribute to a table cell with a fixed width in quirks mode doesn't change the white-space value but _does_ effectively change the min-width. Which means we need to dirty the intrinsic widths on all ancestors of that frame, basically... Unfortunately, I don't see a great place to do this. nsTableCellFrame::AttributeChanged is one option, I guess...
Flags: in-testsuite?
Summary: Setting nowrap attribute dynamically does not change layout like it should → {inc}Setting nowrap attribute dynamically does not change layout like it should
Assignee | ||
Comment 4•17 years ago
|
||
Patch per bz's suggestion.
Comment 5•17 years ago
|
||
Comment on attachment 270455 [details] [diff] [review] Patch Looks reasonable, but it'd be good to have an impartial observer (dbaron, I would suggest) sr.
Attachment #270455 -
Flags: review?(bzbarsky) → review+
Comment on attachment 270455 [details] [diff] [review] Patch sr=dbaron, but please add a comment to BasicTableLayoutStrategy.cpp pointing to this code as well.
Attachment #270455 -
Flags: superreview+
Assignee | ||
Comment 7•17 years ago
|
||
Checked in (with added comment to BasicTableLayoutStrategy).
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 8•17 years ago
|
||
Eli, want to check in the test attached to this bug too?
You need to log in
before you can comment on or make changes to this bug.
Description
•