Closed
Bug 822854
Opened 12 years ago
Closed 12 years ago
Crash [@ nsRuleNode::ComputeColumnData] with -moz-column-rule-color: inherit
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: bugs)
References
Details
(Keywords: crash, testcase)
Crash Data
Attachments
(3 files, 3 obsolete files)
No description provided.
Reporter | ||
Comment 1•12 years ago
|
||
Reporter | ||
Comment 2•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → bugs
Assignee | ||
Comment 4•12 years ago
|
||
Adds a missing null-check. (+ Better patch file with 8 lines of context.)
Attachment #693692 -
Attachment is obsolete: true
Attachment #693692 -
Flags: review?(cam)
Attachment #693701 -
Flags: review?(cam)
Assignee | ||
Comment 5•12 years ago
|
||
Clicking the []patch checkbox this time.
Attachment #693701 -
Attachment is obsolete: true
Attachment #693701 -
Flags: review?(cam)
Attachment #693702 -
Flags: review?(cam)
Comment 6•12 years ago
|
||
You can avoid uploading a new patch and update the "patch-ness" of the existing attachment in the attachment details page if you click the "(edit details)" link.
Comment 7•12 years ago
|
||
Comment on attachment 693702 [details] [diff] [review]
Bug fix.
In COMPUTE_START_RESET, if we find that presContext is null we construct a new (default) style struct for the parent's style to use those values. I think if we take the else branch here if parent is null then we will compute the value to whatever column-rule-color is when mColumnRuleColorIsForeground is true. I am not sure that mColumnRuleColor is valid in that case. In nsStyleColumn's construct it's set to NS_RGB(0, 0, 0), but I don't know if it remains that colour.
In any case, this will be different from nsStyleColor's default mColor value, which is set to aPresContext->DefaultColor() in nsStyleColor's constructor. I feel like we ought to be using that. You can just create a local nsStyleColor to get this mColor out of.
Attachment #693702 -
Flags: review?(cam)
Assignee | ||
Comment 8•12 years ago
|
||
Attachment #693702 -
Attachment is obsolete: true
Attachment #698091 -
Flags: review?(cam)
Comment 9•12 years ago
|
||
Comment on attachment 698091 [details] [diff] [review]
Updated patch per review comments.
Looks good.
Attachment #698091 -
Flags: review?(cam) → review+
Assignee | ||
Comment 10•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•