Closed Bug 975769 Opened 10 years ago Closed 10 years ago

"ABORT: out of range" with CSS will-change

Categories

(Core :: CSS Parsing and Computation, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: jruderman, Assigned: bjacob)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase
With
  user_pref("layout.css.will-change.enabled", true);

###!!! ABORT: out of range: '0 <= aProperty && aProperty < eCSSProperty_COUNT', file layout/style/nsCSSProps.h
This code in nsRuleNode.cpp:

5492         nsCSSProperty prop =
5493           nsCSSProps::LookupProperty(buffer, nsCSSProps::eEnabled);
5494         if (nsCSSProps::PropHasFlags(prop,
5495                                      CSS_PROPERTY_CREATES_STACKING_CONTEXT)) {

needs to check that "prop" didn't come back as eCSSProperty_UNKNOWN before calling PropHasFlags, no?
Blocks: 964885
Flags: needinfo?(bgirard)
As a ride along dholbert points out that we shouldn't use <..., 1> with mWillChange in the style struct.
Attached patch fixSplinter Review
Attachment #8383198 - Flags: review?(dbaron)
https://hg.mozilla.org/integration/mozilla-inbound/rev/de5bdfd57eb3
Assignee: bgirard → bjacob
Flags: needinfo?(bgirard)
https://hg.mozilla.org/mozilla-central/rev/de5bdfd57eb3
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: