Closed Bug 1402200 Opened 7 years ago Closed 7 years ago

Expose nsRect to pixman_box helpers

Categories

(Core :: Graphics, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox57 --- wontfix
firefox58 --- fixed

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

Attached patch ns-rect-boxSplinter Review
I want to use the ArrayView constructor to nsRegion, and these make it easier to get the data into the right format.
Attachment #8911022 - Flags: review?(jmuizelaar)
Attachment #8911022 - Flags: review?(jmuizelaar) → review+
Comment on attachment 8911022 [details] [diff] [review] ns-rect-box Review of attachment 8911022 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/src/nsRegion.h @@ +395,5 @@ > RectIterator RectIter() const { return RectIterator(*this); } > > + static inline pixman_box32_t RectToBox(const nsRect &aRect) > + { > + pixman_box32_t box = { aRect.x, aRect.y, aRect.XMost(), aRect.YMost() }; Can we use aRect.X(), aRect.Y()?
Priority: -- → P3
Whiteboard: [gfx-noted]
Pushed by mwoodrow@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/05a550261890 Expose nsRect to pixman_box helpers. r=jrmuizel
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: