Closed Bug 1298844 Opened 6 years ago Closed 6 years ago

Add PrintDisplayItemToStdout and PrintDisplayListToStdout helper functions for debugging

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: mstange, Assigned: mstange)

Details

Attachments

(1 file)

The existing nsFrame::PrintDisplayList function, and its friends, all require an std::stringstream parameter which is hard to obtain while debugging with gdb.
(If I'm wrong about this, I'd love to be enlightened.)

So I think we should add two convenience functions that just print to stdout.
Pushed by mstange@themasta.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8d88c281d140
Add PrintDisplayItemToStdout and PrintDisplayListToStdout helper functions for debugging. r=jrmuizel
https://hg.mozilla.org/mozilla-central/rev/8d88c281d140
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Comment on attachment 8785995 [details]
Bug 1298844 - Add PrintDisplayItemToStdout and PrintDisplayListToStdout helper functions for debugging.

https://reviewboard.mozilla.org/r/74986/#review76726
Attachment #8785995 - Flags: review?(jmuizelaar) → review+
You need to log in before you can comment on or make changes to this bug.