Closed Bug 1043163 Opened 10 years ago Closed 10 years ago

"ASSERTION: Bad layer contents rectangle" with hugely negative transform scale

Categories

(Core :: Layout, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: jruderman, Assigned: roc)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(3 files)

Attached file testcase
###!!! ASSERTION: Bad layer contents rectangle: 'aLayerContentsVisibleRect->width >= 0 && aLayerContentsVisibleRect->height >= 0', file layout/base/FrameLayerBuilder.cpp, line 1753

This assertion was added in https://hg.mozilla.org/mozilla-central/rev/cb7751fa7b29
Attached file stack
This is just a straight overflow in "pixBounds = state.ScaleToOutsidePixels(bounds, false);" because the Y scale is super-large. We end up with a negative height in pixBounds which later leads to the assertion.
I think we should probably just have the nsRect Scale methods clamp negative width/height to 0.
Assignee: nobody → roc
Status: NEW → ASSIGNED
Attachment #8466768 - Flags: review?(tnikkel) → review+
https://hg.mozilla.org/mozilla-central/rev/a5d5b4c5c24f
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: