Closed Bug 1627398 Opened 5 years ago Closed 5 years ago

Support frame tree dump in CSS pixels in layout debugger

Categories

(Core :: Layout, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(5 files)

Sometimes it is easier to view rects and sizes in CSS pixels instead of app units in the frame tree dump. We can add an extra menu item like "Dump -> Frame (CSS pixels)" in layout debugger.

Audit all the types related to app units [1] printed in
nsIFrame::List (and all the methods that override it), and use
ConvertToString to convert their printing format to CSS pixels if
needed.

In addition, add operator<< to BaseCoord so that it can cooperate with
mozilla::ToString, which is needed by ConvertToString.

[1] The types include nsRect, nsSize, nscoord, LogicalRect, and
LogicalSize.

Depends on D69914

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
Attachment #9138698 - Attachment description: Bug 1627398 Part 2 - Support printing frame tree in css pixels. → Bug 1627398 Part 2 - Support printing frame tree in CSS pixels.
Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/7025929aa093 Part 1 - Convert nsIFrame::List flags to EnumSet. r=heycam https://hg.mozilla.org/integration/autoland/rev/b02beca33eb1 Part 2 - Support printing frame tree in CSS pixels. r=heycam https://hg.mozilla.org/integration/autoland/rev/31fb906085d3 Part 3 - Add a menu item in layout debugger to dump frames in CSS pixels. r=heycam https://hg.mozilla.org/integration/autoland/rev/dfbf28046ce9 Part 4 - Remove nsIFrame::RootFrameList(), and simplify DumpFrameTree()'s implementation. r=heycam https://hg.mozilla.org/integration/autoland/rev/be7a746a65e6 Part 5 - Support dumping frame trees in CSS pixels for gdb and lldb. r=heycam
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: