Closed
Bug 536716
Opened 15 years ago
Closed 15 years ago
Reenable the SetPrimaryFrame assertion
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
I think all we need to do this is to make BuildScrollFrame no longer set the primary frame on the node. There are only two callsites: ConstructFrameFromItemInternal (which was working around this anyway; said workaround can be removed) and InitializeSelectFrame (which hands the frame out to ultimately ConstructFrameFromItemInternal, which last was setting the correct primary frame anyway and triggering the assertion).
Attachment #419149 -
Flags: review?(roc)
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → bzbarsky
Assignee | ||
Comment 1•15 years ago
|
||
Comment on attachment 419149 [details] [diff] [review]
Fix
Hmm. This might not be good enough due to letter frames. Will do some more testing.
Attachment #419149 -
Flags: review?(roc)
Assignee | ||
Comment 2•15 years ago
|
||
Yep. Asserts all over the place with letter frames. Will fix, and make sure to run the layout/reftests/first-letter in a debug build before posting the next version.
Assignee | ||
Comment 3•15 years ago
|
||
Attachment #419149 -
Attachment is obsolete: true
Assignee | ||
Comment 4•15 years ago
|
||
Attachment #419459 -
Attachment is obsolete: true
Attachment #419469 -
Flags: review?(roc)
Attachment #419469 -
Flags: review?(roc) → review+
Assignee | ||
Comment 5•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 6•15 years ago
|
||
What kind of situation would lead to an area element getting a frame?
Assignee | ||
Comment 7•15 years ago
|
||
> What kind of situation would lead to an area element getting a frame?
Before this patch, or after?
After, any time the <area> is used in an imagemap for an <img>. We set the primary frame of the <area> to the nsImageFrame (that's the nasty hack documented all over the frame constructor that you've run into before).
Before this patch, the same as above plus if someone explicitly gave non-"none" display to the <area> it could get a frame via the normal frame-construction codepath...
Comment 8•15 years ago
|
||
(In reply to comment #7)
> Before this patch, the same as above plus if someone explicitly gave non-"none"
> display to the <area> it could get a frame via the normal frame-construction
> codepath...
Ah, okay, this was what I was asking.
You need to log in
before you can comment on or make changes to this bug.
Description
•