Closed Bug 513741 Opened 16 years ago Closed 16 years ago

"ASSERTION: rule walker must be at root" with XBL, rem unit, display:table

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Attached file testcase
###!!! ASSERTION: rule walker must be at root: 'mRuleWalker->AtRoot()', file /Users/jruderman/central/layout/style/nsStyleSet.cpp, line 691 This assertion was added in bug 507457 comment 10.
Attached file stack showing problem
I'm not sure what we ought to do about this. We could just make GetContext reset the rule walker before calling NS_NewStyleContext. Or we could make the rule walker not be a member of the style set at all; that would either change the bug 492675 / bug 466024 crashes into something else or fix them. I'm sort of tempted to just do the latter; I was tempted to do it when fixing bug 507457. Thoughts?
Attached patch patchSplinter Review
Here's the simple patch. It's possible this also fixes bug 466024. I also threw in a signed-vs.-unsigned-comparison warning fix.
Attachment #403320 - Flags: review?(bzbarsky)
Attachment #403320 - Flags: review?(bzbarsky) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
OS: Mac OS X → All
Priority: -- → P2
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
(In reply to comment #2) > It's possible this also fixes bug 466024. ... and bug 492675; they're really the same thing, and I forget to mention both sometimes.
Actually, I take that back; I don't think this will fix a crash in FileRules or AddImportantRules.
No longer blocks: 466024, 492675
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: