зеркало из https://github.com/mozilla/gecko-dev.git
96d67c6eb3
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 |
||
---|---|---|
.. | ||
base | ||
build | ||
components | ||
doc | ||
ds | ||
glue | ||
idl-parser | ||
io | ||
libxpt/xptcall | ||
reflect | ||
rust | ||
string | ||
system | ||
tests | ||
threads | ||
windbgdlg | ||
xpidl | ||
moz.build | ||
xpcom-config.h.in | ||
xpcom-private.h.in |