Closed
Bug 365189
Opened 18 years ago
Closed 18 years ago
document.width/document.height flush layout too late
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha5
People
(Reporter: sharparrow1, Assigned: sharparrow1)
Details
(Keywords: testcase)
Attachments
(2 files, 1 obsolete file)
18 years ago
536 bytes,
text/html
|
Details | |
14.36 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
Testcase coming up; the issue is caused by the presshell being retrieved before the layout is flushed.
(Bug discovered through code inspection; I haven't seen anyone try this.)
Assignee | ||
Comment 1•18 years ago
|
||
Fix + some cleanup. (I'm changing the behavior of the HTML calculation slightly, but I doubt anyone cares what the results are with overflow set on both the root element and the body.)
Assignee: general → sharparrow1
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•18 years ago
|
||
Comment on attachment 265501 [details] [diff] [review]
Patch
Not sure if you're the right person to ask for review, but you r+ed the last patch to this code.
Attachment #265501 -
Flags: review?(jonas)
Comment on attachment 265501 [details] [diff] [review]
Patch
This has too much layout specific stuff for me. Please ask one of the layout guys instead. I can sr though unless the reviewer r/sr it.
Attachment #265501 -
Flags: review?(jonas)
Assignee | ||
Updated•18 years ago
|
Attachment #265501 -
Flags: review?(roc)
+ nsresult rv = GetViewportSize(&width, &height);
+ *aHeight = height;
Why can't you just do "return GetViewportSize(&width, aHeight);" like you did in the other part of the patch?
Assignee | ||
Comment 5•18 years ago
|
||
With more consistent style.
Attachment #265501 -
Attachment is obsolete: true
Attachment #265753 -
Flags: review?(roc)
Attachment #265501 -
Flags: review?(roc)
Attachment #265753 -
Flags: superreview+
Attachment #265753 -
Flags: review?(roc)
Attachment #265753 -
Flags: review+
Comment 6•18 years ago
|
||
It looks like this may have caused Bug 381746
Comment 7•18 years ago
|
||
(This was checked in at 2007-05-22 20:52.)
Should this be marked fixed?
Flags: in-testsuite?
Target Milestone: --- → mozilla1.9alpha5
Assignee | ||
Comment 8•18 years ago
|
||
Oh yeah, forgot to mark it.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•