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)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
People
(Reporter: jruderman, Unassigned)
References
Details
(Keywords: assertion, testcase)
Attachments
(3 files)
###!!! 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.
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?
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
Updated•16 years ago
|
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.
You need to log in
before you can comment on or make changes to this bug.
Description
•