Open
Bug 386449
Opened 18 years ago
Updated 2 years ago
add assertions for invariants of primary frame relationship
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
REOPENED
People
(Reporter: dbaron, Unassigned)
References
(Depends on 1 open bug)
Details
We should add assertions to enforce invariants of the primary frame map, as follows:
* nsFrameManager::SetPrimaryFrameFor should have the assertion (currently in #if 0) that aPrimaryFrame->GetContent() == aContent enabled
* nsFrameManager::SetPrimaryFrameFor should have the warning that entry->frame is null (currently #ifdef DEBUG_dbaron) enabled for everybody and turned into an assertion
* nsFrameManager::RemoveAsPrimaryFrame should assert that entry->frame == aPrimaryFrame rather than checking it
Comment 1•15 years ago
|
||
The primary frame map was removed in bug 500882.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Comment 2•15 years ago
|
||
Or are some of these assertions still relevant to the "primary frame mapping" that now exists as a pointer held by the frame?
Reporter | ||
Comment 3•15 years ago
|
||
These are still relevant to primary frame pointer in the content node.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Summary: add assertions for invariants of primary frame map → add assertions for invariants of primary frame relationship
Comment 4•15 years ago
|
||
> * nsFrameManager::SetPrimaryFrameFor should have the assertion (currently in
> #if 0) that aPrimaryFrame->GetContent() == aContent enabled
This should move (still in #if 0 pending the <area> mess being fixed) into nsIContent::SetPrimaryFrame, right?
> * nsFrameManager::SetPrimaryFrameFor should have the warning that entry->frame
> is null (currently #ifdef DEBUG_dbaron) enabled for everybody and turned into
> an assertion
This was effectively done in bug 536716, I think.
> nsFrameManager::RemoveAsPrimaryFrame should assert that entry->frame ==
> aPrimaryFrame rather than checking it
This part I'm not sure has a new-world equivalent, nor that it should.
Updated•6 years ago
|
Product: Core → Core Graveyard
Assignee | ||
Updated•6 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•