Closed Bug 377850 Opened 17 years ago Closed 17 years ago

[FIX]Consider bailing out of ReconstructDocElementHierarchy if no root

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID
mozilla1.9alpha4

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

See bug 343293 comment 6:

But maybe we should also add an early return in
ReconstructDocElementHierarchy when there's no frame for the root content?
Attached patch Proposed patchSplinter Review
Most of that is outdenting stuff...

Mats, I'd like you to take a look since you've been in this code recently.
Attachment #261925 - Flags: superreview?(dbaron)
Attachment #261925 - Flags: review?(mats.palmgren)
Comment on attachment 261925 [details] [diff] [review]
Proposed patch

>+      if (!docElementFrame) {
>+        return NS_ERROR_UNEXPECTED;
>+      }

I guess we want to know about it if that happens so could you
put in an assertion there as well...
r=mats
Attachment #261925 - Flags: review?(mats.palmgren) → review+
Will do.
Comment on attachment 261925 [details] [diff] [review]
Proposed patch

sr=dbaron
Attachment #261925 - Flags: superreview?(dbaron) → superreview+
Checked in, with a NS_NOTREACHED before that early return.  Nothing here to test-suite, really.
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
I backed this out, because this regressed bug 71191 (which is the one way we can _not_ have a frame for the root content), and because as a result it caused bug 379920.
Depends on: 379920
Resolution: FIXED → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: