gecko-dev/layout
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
..
base Bug 1422908 - Use fieldset frame itself as the aPositionedFrame argument on PushAbsoluteContainingBlock. r=mats 2020-07-14 17:49:05 +00:00
build Bug 1652254 - Remove svg from some moz.build local includes r=dholbert 2020-07-12 16:38:26 +00:00
docs Bug 1628958 Part 1 - Add Layout & CSS section to Mozilla Source Tree Documentation. r=firefox-source-docs-reviewers,sylvestre 2020-04-15 18:07:24 +00:00
forms Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-07-14 09:34:19 +00:00
generic Bug 1652646 Part 2 - Use nsIFrame::IsFlexItem() whenever possible. r=dholbert 2020-07-14 23:33:17 +00:00
inspector Bug 1639893 Part 1 - Partial Imlementation of GetOverflowingChildrenOfElement. r=bradwerth,emilio 2020-06-23 18:51:32 +00:00
ipc Bug 1613985 - Use default for equivalent-to-default constructors/destructors in layout. r=dholbert 2020-03-17 09:38:32 +00:00
mathml Bug 1630704 - Part 27: Remove nsFrame from inheritance chain r=emilio 2020-07-06 22:29:42 +00:00
media
painting Bug 1652254 - Remove svg from some moz.build local includes r=dholbert 2020-07-12 16:38:26 +00:00
printing Bug 1652788: Preemptively fix unified build bustage in layout/{base,generic,printing}. r=TYLin 2020-07-14 18:15:49 +00:00
reftests Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt 2020-07-15 03:45:33 +00:00
style Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt 2020-07-15 03:45:33 +00:00
svg Bug 1652819 - Don't assume that all filtered frames have an associated DOM node. r=mstange 2020-07-14 18:08:23 +00:00
tables Bug 1652646 Part 1 - Use nsIFrame::IsGridItem() whenever possible. r=dholbert 2020-07-14 23:31:11 +00:00
tools Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt 2020-07-15 03:45:33 +00:00
xul Bug 1259861 - Move everything else into the mozilla namespace in layout/svg r=dholbert 2020-07-11 02:20:20 +00:00
moz.build Bug 1628958 Part 1 - Add Layout & CSS section to Mozilla Source Tree Documentation. r=firefox-source-docs-reviewers,sylvestre 2020-04-15 18:07:24 +00:00