Closed Bug 513741 Opened 15 years ago Closed 15 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 (deleted) —
###!!! 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 (deleted) —
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 patch (deleted) — Splinter 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)
Blocks: 492675
Blocks: 466024
Attachment #403320 - Flags: review?(bzbarsky) → review+
Status: NEW → RESOLVED
Closed: 15 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: