Closed
Bug 1475024
Opened 6 years ago
Closed 6 years ago
Add Stringify overloads for RectAbsolute
Categories
(Core :: Graphics, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
Details
Attachments
(1 file)
Stringify(foo) works when foo is an nsRect but not when it's an nsRectAbsolute.
Comment hidden (mozreview-request) |
Comment 2•6 years ago
|
||
mozreview-review |
Comment on attachment 8991431 [details] Bug 1475024 - Add Stringify overloads for RectAbsolute. https://reviewboard.mozilla.org/r/256332/#review263598 ::: gfx/layers/LayersLogging.h:114 (Diff revision 1) > + const char* pfx="", const char* sfx="") > +{ > + aStream << pfx; > + aStream << nsPrintfCString( > + "(l=%f, t=%f, r=%f, b=%f)", > + r.X(), r.Y(), r.XMost(), r.YMost()).get(); nit: Do you mind using the new Left/Right/Top/Bottom accessors I added recently? I find they're a little bit more generic terms than X and XMost/etc. If you'd prefer not to that's fine as well.
Attachment #8991431 -
Flags: review?(bas) → review+
Assignee | ||
Comment 3•6 years ago
|
||
Makes sense, I've updated the patch.
Comment hidden (mozreview-request) |
Pushed by kgupta@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a8f40ce410cb Add Stringify overloads for RectAbsolute. r=bas
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a8f40ce410cb
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•