Closed Bug 1742006 Opened 3 years ago Closed 3 years ago

Minor clean up of Union methods in Rect types

Categories

(Core :: Graphics, task)

task

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(2 files)

Please see the commit message of the upcoming patches.

nsRect's Union ond UnionEdges are already saturating operations, so we don't
need these two methods.

The documents of Union and SaturatingUnion promise that |this| will be return
when both rects are empty, but the current implementation returns aRect instead.

This patch fixes the documents and added a test case.

Depends on D131567

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/89a712ca5342 Remove two unused nsRect union methods. r=gfx-reviewers,sotaro https://hg.mozilla.org/integration/autoland/rev/b9329e4be718 Fix documents of rect types' Union and SaturatingUnion, and add a test. r=gfx-reviewers,mstange
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: