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)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.9alpha5

People

(Reporter: sharparrow1, Assigned: sharparrow1)

Details

(Keywords: testcase)

Attachments

(2 files, 1 obsolete file)

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.)
Attached patch Patch (obsolete) — Splinter Review
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
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?(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?
Attached patch Patch v2Splinter Review
With more consistent style.
Attachment #265501 - Attachment is obsolete: true
Attachment #265753 - Flags: review?(roc)
Attachment #265501 - Flags: review?(roc)
It looks like this may have caused Bug 381746
Depends on: 381746
No longer depends on: 381746
(This was checked in at 2007-05-22 20:52.) Should this be marked fixed?
Flags: in-testsuite?
Target Milestone: --- → mozilla1.9alpha5
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.

Attachment

General

Creator:
Created:
Updated:
Size: