Closed Bug 1590185 Opened 5 years ago Closed 5 years ago

Add a paged mode layout to layout debugger

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(3 files)

This bug is to add a paged mode layout in layout debugger like what we have in "reftest-paged" reftests. The print setup is in setupPrintMode() in reftest-content.js.

When interactively debugging fragmentation in rr, this might be useful by using a fragmention environment closer to real printing setup rather in multicol on certain cases.

This patch adds a menu item in "Toggle" -> "Paged Mode". If the item is
toggled, after finishing loading the document, the document will be
forced into paged mode.

The print settings in nsLayoutDebuggingTools::SetPagedMode() are
similar to setupPrintMode() in reftest-content.js.

Remove the hack in nsDocumentViewer::InitInternal() because we don't
want to set a new document when mIsPageMode = false.

Depends on D49992

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d848235872b1 Part 1 - Remove obsolete member variables in nsLayoutDebuggingTools. r=heycam https://hg.mozilla.org/integration/autoland/rev/30f66e8e2c19 Part 2 - Support paged mode layout in layout debugger. r=dbaron https://hg.mozilla.org/integration/autoland/rev/3825f76612d8 Part 3 - Add --paged command line argument to layout debugger. r=heycam
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: