gecko-dev/servo/components
Emilio Cobos Álvarez d275fd6251 Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt
This hooks the "monochrome" media query and co to the
nsIPrintSettings.printInColor setting.

This print setting we're using is not exposed in the print preview UI,
but you can test it setting the print.print_in_color preference to
"false", and then print preview will correctly show up greyscale'd.

Once this lands, the UI folks just have to use it as they see fit :)

I would've liked to add a proper rendering test, but the print reftests
check only whether the PDF text matches.

I could add a test to printpreview_helper.xhtml, but I'm refactoring
that file in bug 1648064 so I'd rather wait a bit and add it in a
separate bug. The test for the media feature should make sure that we
test that code path at least.

Differential Revision: https://phabricator.services.mozilla.com/D83552
2020-07-15 03:45:33 +00:00
..
derive_common Bug 1643201 - Cherry-pick some servo changes to derive_common. 2020-06-04 00:35:11 +00:00
fallible Bug 1646811 - Sync some comment changes from servo. 2020-06-18 18:14:10 +00:00
hashglobe Bug 1646811 - Sync some comment changes from servo. 2020-06-18 18:14:10 +00:00
malloc_size_of Bug 1633410 - Back out bug 1631721. 2020-06-18 15:25:33 +00:00
selectors Backed out changeset bde27b38c9c5 (bug 1643201) for causing Valgrind failures and build bustages 2020-06-04 05:17:11 +03:00
servo_arc Bug 1643201 - Cherry-pick some Servo Cargo.toml cleanups. 2020-06-04 00:35:19 +00:00
size_of_test
style Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt 2020-07-15 03:45:33 +00:00
style_derive Bug 1643201 - Rustfmt recent changes. 2020-06-04 00:35:41 +00:00
style_traits Bug 1643201 - Move most of `SequenceWriter::write_item` to non-generic functions. 2020-06-04 00:35:30 +00:00
to_shmem Bug 1621773 - Gracefully handle errors creating shared memory UA style sheets. r=emilio 2020-05-11 00:11:45 +00:00
to_shmem_derive Bug 1621773 - Gracefully handle errors creating shared memory UA style sheets. r=emilio 2020-05-11 00:11:45 +00:00