Add "snapToPixels" parameter to gfxContext::RoundedRectangle()

NEW
Assigned to

Status

()

Core
Layout
9 years ago
9 years ago

People

(Reporter: dholbert, Assigned: dholbert)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

As suggested by roc in bug 472769 comment 31 and bug 472769 comment 36, we need to add a "snapToPixels" argument in gfxContext::RoundedRectangle (like the one in gfxContext::Rectangle) so that we can have consistent behavior between the two.
Assignee: nobody → dholbert
Created attachment 360998 [details] [diff] [review]
like so?

This patch just basically copies the snapToPixels code from "Rectangle" into "RoundedRectangle".  (setting up a snapped rect and temporarily setting mCairo to the identity matrix, and then making a recursive call)
Created attachment 361034 [details] [diff] [review]
like so v2?

(Oops; prev patch doesn't compile -- I forgot to update the method signature in the .cpp file.  That's fixed in this version)
Attachment #360998 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.