Closed Bug 374579 Opened 18 years ago Closed 18 years ago

[regression] list-style-image painted all over the place

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: phiw2, Assigned: dbaron)

References

()

Details

(Keywords: regression, testcase, top100)

Attachments

(2 files)

Attached file testcase
ul {list-style-image:my.gif}or li {list-style-image:my.gif} are painted all over their parent block. This gives some interesting effects like in the url above. This is a regression form bug 371434. Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a3pre) Gecko/20070319 Minefield/3.0a3pre ID:2007031921 [cairo]
hardware -> ALL os -> ALL i am also seeing this on win xp Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a3pre) Gecko/20070319 Minefield/3.0a3pre ID:2007031919 [cairo]
OS: Mac OS X → All
Hardware: Macintosh → All
This borks Wikipedia, too. (e.g. http://en.wikipedia.org/wiki/Firefox)
Keywords: top100
Hrm. So this seems to work fine on Linux, but I see the bug on Windows.
Found the problem -- I was using aDirtyRect instead of dirtyRect in nsLayoutUtils::DrawImage, causing massively negative srcRect coordinates to be passed to the image code. The bug shows up when the negative coordinates get clamped to zero; it works fine when they don't.
Attached patch patchSplinter Review
Assignee: nobody → dbaron
Status: NEW → ASSIGNED
Attachment #259123 - Flags: review?(vladimir)
Attachment #259123 - Flags: review?(vladimir) → review?(pavlov)
Attachment #259123 - Flags: review?(pavlov) → review+
Fix checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a3pre) Gecko/20070320 Minefield/3.0a3pre ID:2007032012 [cairo] verified/fixed
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a3pre) Gecko/20070321 SeaMonkey/1.5a] (nightly) (W2Ksp4) (Confirming) V.Fixed, per bug 374611.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: