Closed Bug 600120 Opened 14 years ago Closed 14 years ago

fix canvas composite.uncovered.image tests

Categories

(Core :: Graphics: Canvas2D, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: vlad, Assigned: emk)

References

Details

Attachments

(2 files)

These were only accidentally passing, because the code that I'm removing in bug 599698 caused us to draw a 0x0 rectangle with whatever the current operator was.  If that was one of the unbounded ones, like these 4, the net result was that the entire canvas was cleared.  Conveniently, "success" in these tests is transparent black.

I suspect that the right thing to do is something similar to what Masatoshi mentions in bug 599698 comment 23:

> Does OperatorAffectsUncoveredAreas function need to be restored?
> (which was removed by bug 366283). See also bug 503283.
Attached patch patchSplinter Review
This patch should be applied on top of the patch of bug 599698.
Comment on attachment 479042 [details] [diff] [review]
patch

Asking for review on this patch: otherwise, it could easily get forgotten.
Attachment #479042 - Flags: review?(vladimir)
Comment on attachment 479042 [details] [diff] [review]
patch

This looks good -- and yes, please do set r? on patches, or they're quite easy to miss :)  Has this gone through the try server?  If so, I'll land both this and the previous patch at the same time.
Attachment #479042 - Flags: review?(vladimir) → review+
(In reply to comment #3)
> Has this gone through the try server?  If so, I'll land both this
> and the previous patch at the same time.
Sorry, I have no try server access. I tested it locally on Windows. All canvas mochitest passed.
So, this failed the Mac machines on tryserver, but I realized that's because roc/jeff fixed these operators on the Quartz surface.  So if I remove the != Quartz surface checks, everything works great.  I'll get this landed along with the previous patch, with that change.
http://hg.mozilla.org/mozilla-central/rev/ea4b83ed71a6
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Blocks: 600767
Assignee: nobody → VYV03354
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: