Closed Bug 1180178 Opened 10 years ago Closed 10 years ago

Add writing-mode and logical coordinate info to frame dumps

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: smontagu, Assigned: smontagu)

Details

Attachments

(1 file, 1 obsolete file)

This makes life easier when debugging layouts with orthogonal flows
Attached patch Patch (obsolete) — Splinter Review
Assignee: nobody → smontagu
Attachment #8629325 - Flags: review?(jfkthame)
Comment on attachment 8629325 [details] [diff] [review] Patch Review of attachment 8629325 [details] [diff] [review]: ----------------------------------------------------------------- Thanks; I've often thought of doing something like this, but never got around to it. I'd suggest a slightly different approach in nsFrame, though: ::: layout/generic/nsFrame.cpp @@ +5672,5 @@ > + aTo += nsPrintfCString(" {%s-%s: %d,%d,%d,%d}", > + wm.IsVertical() ? wm.IsVerticalLR() ? "vlr" : "vrl" > + : "htb", > + wm.IsBidiLTR() ? "ltr" : "rtl", > + IStart(0), BStart(0), ISize(), BSize()); It seems rather fishy to pass 0 to IStart() and BStart() here... it's not clear what the dumped values will really signify. In fact, I think we should remove these IStart(containerWidth) and BStart(containerWidth) methods from nsIFrame altogether (they're currently unused AFAICT), as it's really only meaningful to consider the logical-coord position of a frame in terms of its parent's writing mode (and width). Then what I'd like to dump would be the frame's WM and logical size; and its parent's WM, width, and the child's logical rect according to that coordinate system.
(In reply to Jonathan Kew (:jfkthame) from comment #2) > Then what I'd like to dump would be the frame's WM and logical size; and its > parent's WM, width, and the child's logical rect according to that > coordinate system. The parent's width isn't necessarily the container width which was used when positioning the frame, but I suppose it's the best we can do.
Attached patch Patch v.2Splinter Review
Attachment #8629325 - Attachment is obsolete: true
Attachment #8629325 - Flags: review?(jfkthame)
Attachment #8630436 - Flags: review?(jfkthame)
Comment on attachment 8630436 [details] [diff] [review] Patch v.2 Review of attachment 8630436 [details] [diff] [review]: ----------------------------------------------------------------- LGTM. It's true the parent width won't always be correct (especially in the midst of reflow), but it seems like the most useful thing we can reasonably show here.
Attachment #8630436 - Flags: review?(jfkthame) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: