Closed Bug 1180234 Opened 9 years ago Closed 9 years ago

Reftest for bug 1174332 fails with some GTK3 themes

Categories

(Core :: Widget: Gtk, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: acomminos, Assigned: acomminos)

References

Details

Attachments

(2 files)

Attached image ambiance_focused_checkbox.png (deleted) —
The way the reftest for bug 1174332 calculates the bounds for the box shadow causes some issues on GTK3 themes that draw partially transparent focused checkboxes, such as the version of Ambiance on the test infrastructure.

The flood bounds for the checkbox in the reference are calculated as follows;

> <feMorphology operator="dilate" radius="5" in="SourceAlpha" result="mask"/>

However, this produces unexpected results with Ambiance's focused checkbox. The attachment makes it clear why that might be so.
The issue here is that the box-shadow test draws the checkbox directly on the blue background, causing accumulated error with multiple compositions by the theme engine (it composites each part of the checkbox onto the background, such as the background, outline, focus ring, etc). The SVG reference instead draws the widget on a temporary clear surface, and composites that onto the background. This issue is present throughout many reftests that we fuzz when gtkWidget is true.

This patch adds extra fuzziness for the tryserver's GTK3 theme.
Attachment #8631249 - Flags: review?(mstange)
Attachment #8631249 - Flags: review?(mstange) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/cb1d12d4ccfd
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: