Closed Bug 1210493 Opened 9 years ago Closed 9 years ago

layout/reftests/pagination/abspos-breaking-007.html fails under Skia due to drawRect ignoring line width when culling strokes

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: lsalzman, Assigned: lsalzman)

Details

Attachments

(1 file)

layout/reftests/pagination/abspos-breaking-007.html tests CSS border drawing while paginating. This causes strokeRects to be issued that are partially clipped.

However, inside SkDraw::drawRect, when doing a quick rejection on the rectangle's bounds, Skia does not enlarge the bounding rectangle by the line width of the stroke. This causes the bounding rectangle not to overlap the clip area, and so the stroke is rejected and the test fails.
This is just a straight backport of the latest Skia code that already fixed this issue by appropriately enlarging stroke bounding box with the stroke's width.

It fixes the failure with this particular reftest until we can do a full Skia upgrade in the future.

Since this is already upstream, it will not pose any difficulties on future upgrades.
Attachment #8668574 - Flags: review?(jmuizelaar)
Attachment #8668574 - Flags: review?(jmuizelaar) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/eb52856f029c
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: