Closed Bug 1475024 Opened 6 years ago Closed 6 years ago

Add Stringify overloads for RectAbsolute

Categories

(Core :: Graphics, enhancement)

Other Branch
enhancement
Not set
normal

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 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+
Makes sense, I've updated the patch.
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a8f40ce410cb
Add Stringify overloads for RectAbsolute. r=bas
https://hg.mozilla.org/mozilla-central/rev/a8f40ce410cb
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: