Closed
Bug 334829
Opened 19 years ago
Closed 19 years ago
FindFrameWithContent() can't find frame for
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
People
(Reporter: jag+mozilla, Assigned: jag+mozilla)
Details
Attachments
(2 files)
3.25 KB,
patch
|
dbaron
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
4.07 KB,
patch
|
Details | Diff | Splinter Review |
Danger Inc. has a fix for this which I'll attach shortly. Here's the situation we ran into:
// In a table with a <col> element the table col frame is inside
// tableOuterFrame (but it's a sibling of tableFrame).
//
// In the content tree the <col> element is inside the table element.
//
// So the content tree and frame tree structures don't match, and
// FindFrameWithContent() for the content element after the <col>
// element fails because of the bad hint (the hint is the <col>
// frame, which isn't the prev sibling for the frame sought after).
The bug is that listName (which starts out nsnull) doesn't get set in the path that sets aHint to nsnull, so we exit the inner do/while loop, set aParentFrame to its NifOrSpecialSibling, and try again (with aHint == nsnull this time), while we should retry with the original aParentFrame (with aHint == nsnull this time) first.
If I read it correctly, that's what the old |goto| based code did. See also bug 140275.
Assignee | ||
Comment 1•19 years ago
|
||
Patch courtesy of Danger, Inc., with comment changes (merging theirs and the existing one) by me. I think I got the comment right, but feel free to suggest better wording.
Attachment #219150 -
Flags: superreview?(bzbarsky)
Attachment #219150 -
Flags: review?(dbaron)
![]() |
||
Comment 2•19 years ago
|
||
This would actually work if columns were honest out-of-flows, due to the
kidFrame = aFrameManager->GetPlaceholderFrameFor(kidFrame);
code in FindFrameWithContent...
I wonder whether fieldset and legend have similar issues, actually.
Attachment #219150 -
Flags: review?(dbaron) → review+
![]() |
||
Updated•19 years ago
|
Attachment #219150 -
Flags: superreview?(bzbarsky) → superreview+
Assignee | ||
Comment 3•19 years ago
|
||
Checked in, 2006-04-21 04:13, layout/base/nsCSSFrameConstructor.cpp, v1.1223
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
![]() |
||
Comment 4•17 years ago
|
||
Updated•14 years ago
|
Assignee: nobody → jag-mozilla
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•