gecko-dev/xpcom
Daniel Holbert 96d67c6eb3 Bug 1652278 part 2: Flesh out PrintedSheetFrame implementation so that it serves as the container for nsPageFrame. r=TYLin
This patch:
- Creates an anon-box pseudo-style for PrintedSheetFrame, in part so that it
  can co-opt the styles that we formerly gave to page-frames in ua.css, to draw
  the sheet of paper and the shadow in Print Preview.
- Adjusts nsCSSFrameConstructor to create a PrintedSheetFrame as the parent of
  nsPageFrame (inserting between it and its nsPageSequenceFrame container, in
  the frame tree).
- Fleshes out out a simple BuildDisplayList() implementation for
  PrintedSheetFrame (taking the responsibility for "paper"-drawing from
  nsPageFrame).
- Fleshes out a simple Reflow implementation for PrintedSheetFrame, just
  placing the child page (assuming there's only one for now) at the origin.
- Adjusts nsPageFrame and nsPageSequenceFrame to account for the fact that
  there's another layer between them now.

Note that PrintedSheetFrame needs to implement AppendDirectlyOwnedAnonBoxes()
(just as nsSimplePageSequence and nsPageFrame do), since it owns anonymous
nsPageFrame instances. This implementation only needs to append the first
child, as explained in the code-comment and in
https://bugzilla.mozilla.org/show_bug.cgi?id=1374761#c9 (and of course, for
now, PrintedSheetFrame only has one child at a time anyway.)

Differential Revision: https://phabricator.services.mozilla.com/D83457
2020-08-05 03:28:32 +00:00
..
base Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-08-02 15:29:15 +00:00
build Bug 1223932 - delete guard object uses from the tree; r=jwalden 2020-07-30 14:22:38 +00:00
components Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2020-07-27 17:45:43 +00:00
doc
ds Bug 1652278 part 2: Flesh out PrintedSheetFrame implementation so that it serves as the container for nsPageFrame. r=TYLin 2020-08-05 03:28:32 +00:00
glue Bug 1635569 - Set execute flags when prefetching images r=aklotz 2020-05-06 11:53:27 +00:00
idl-parser Bug 1654602 - Run `xpidl` unit tests as part of `xpcom` subsuite r=froydnj 2020-07-22 17:51:14 +00:00
io Bug 1650768 - P3. Add .fileloc and .webloc file extensions to executable extension list r=Gijs 2020-07-23 12:31:14 +00:00
libxpt/xptcall
reflect Bug 1654483 - Enable the CFI directives for NS_InvokeByIndex on macOS. r=froydnj 2020-07-24 13:04:35 +00:00
rust Bug 1650456 - Correct name in a few places, r=froydnj 2020-07-03 20:20:29 +00:00
string Bug 1651323 - Add MOZ_LIFETIME_BOUND attribute to nsTLiteralString AsString and conversion operator. r=xpcom-reviewers,nika 2020-07-10 12:16:20 +00:00
system Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi 2020-07-08 20:15:59 +00:00
tests Bug 1653638 - P1. Rename thread type and remove unused one. r=mattwoodrow 2020-08-03 08:01:07 +00:00
threads Bug 1223932 - delete guard object uses from the tree; r=jwalden 2020-07-30 14:22:38 +00:00
windbgdlg
xpidl
moz.build
xpcom-config.h.in
xpcom-private.h.in