Closed Bug 1041893 Opened 10 years ago Closed 10 years ago

GetBackgroundClip doesn't need to record the clip rect direction

Categories

(Core :: Layout, defect)

29 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

Attachments

(1 file)

By the looks of things this code was copied from border painting code and was never actually required.

Border painting clips to two rects at the same time (inner/outer edges of the border), and so needs the inner rectangle to be clockwise so that the clipped region is the enclosed border area.

For background clipping we only have a single rect, so recording the direction has no effect and makes the code more confusing than necessary.
Attachment #8460032 - Flags: review?(roc)
Assignee: nobody → matt.woodrow
https://hg.mozilla.org/mozilla-central/rev/f63b1f47aa8f
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: