Closed
Bug 1402200
Opened 7 years ago
Closed 7 years ago
Expose nsRect to pixman_box helpers
Categories
(Core :: Graphics, defect, P3)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla58
People
(Reporter: mattwoodrow, Assigned: mattwoodrow)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
2.15 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter 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)
Updated•7 years ago
|
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()?
Updated•7 years ago
|
Pushed by mwoodrow@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/05a550261890
Expose nsRect to pixman_box helpers. r=jrmuizel
Comment 3•7 years ago
|
||
bugherder |
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.
Description
•