Closed Bug 1375812 Opened 9 years ago Closed 8 years ago

stylo: Should build an identify matrix for InterpolateMatrix

Categories

(Core :: CSS Parsing and Computation, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: boris, Assigned: boris)

References

Details

Attachments

(3 files, 1 obsolete file)

These is a case we crash because we didn't build an identity matrix for InterpolateMatrix: <style> #target { width: 100px; height: 100px; background-color: blue; transition: all 10s linear; transform: translateX(100px); } </style> <script> var div = document.getElementById('target'); div.style.setProperty("transform", "rotate(60deg)", ""); window.getComputedStyle(div).transform; div.style.setProperty("transform", "none", ""); </script> <div id="target"></div> We might trigger an transition from an InterpolateMatrix to none, so panic [1]. [1] http://searchfox.org/mozilla-central/rev/3291398f10dcbe192fb52e74974b172616c018aa/servo/components/style/properties/helpers/animated_properties.mako.rs#1629
I think we've been using P1 for stability issues like this.
Priority: P2 → P1
Comment on attachment 8881395 [details] Bug 1375812 - Build an identity matrix for InterpolateMatrix. https://reviewboard.mozilla.org/r/152548/#review157850 r=me assuming we also have a test that shows this gives the correct result
Attachment #8881395 - Flags: review?(bbirtles) → review+
Comment on attachment 8881396 [details] Bug 1375812 - Add crashtest for interpolation between interpolatematrix and none. https://reviewboard.mozilla.org/r/152550/#review157852
Attachment #8881396 - Flags: review?(bbirtles) → review+
Comment on attachment 8881846 [details] Bug 1375812 - Test the result of interpolation from interpolatematrix to none. https://reviewboard.mozilla.org/r/152916/#review158128
Attachment #8881846 - Flags: review?(bbirtles) → review+
Attachment #8881395 - Attachment is obsolete: true
Attached file Servo PR, #17553
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bb9ac25d6756 Add crashtest for interpolation between interpolatematrix and none. r=birtles https://hg.mozilla.org/integration/autoland/rev/5394e6b2347b Test the result of interpolation from interpolatematrix to none. r=birtles
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: