Closed Bug 389459 Opened 17 years ago Closed 17 years ago

lines appear in images if you scroll the page while they're still loading, and layout.css.dpi is greater than or equal to 144

Categories

(Core :: Graphics, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: db48x, Assigned: sharparrow1)

References

()

Details

Attachments

(1 file)

These lines can be both horizontal and vertical, depending on which direction you scroll the page. I have layout.css.dpi set to 144, and the black lines are two pixels wide. When I set it to 240, the lines are 3 pixels wide. They cover only the image(s) that are loading, not the rest of the page. Once the image is fully loaded, these lines no longer occur while scrolling, though any existing lines remain on the screen until that part of the image is forced to redraw, for example by being scrolled off screen and back.

I tried to take a screenshot of this, but that caused the window to be redrawn and the lines to disappear.
Oh, and I'm the trunk, build id is not too old at 2007072116
Ah, and the color of the line is the background color, it's not always black. Try doing view image on that page, and you'll get white lines.
Summary: black lines appear in images if you scroll the page while they're still loading, and layout.css.dpi is greater than or equal to 144 → lines appear in images if you scroll the page while they're still loading, and layout.css.dpi is greater than or equal to 144
Attached patch PatchSplinter Review
The arithmetic here is just weird; do something sane-looking.
Assignee: nobody → sharparrow1
Status: NEW → ASSIGNED
Attachment #274021 - Flags: review?(vladimir)
Comment on attachment 274021 [details] [diff] [review]
Patch

This looks good, though I'd ping dbaron since he put that code in initially, and i'm not sure why now.  But it might have been a thinko.
Attachment #274021 - Flags: review?(vladimir) → review+
It's not dbaron's code; see Bug 337424.
You could take out the comment too.
I'll do that when I check in.
Comment on attachment 274021 [details] [diff] [review]
Patch

Fix for a minor bug in painting scaled images while they are loading.  Extremely low-risk; the worst possible side-effect is a rounding error painting images while loading.
Attachment #274021 - Flags: approval1.9?
Component: Layout: Images → GFX: Thebes
QA Contact: layout.images → thebes
Comment on attachment 274021 [details] [diff] [review]
Patch

a19=dbaron
Attachment #274021 - Flags: approval1.9? → approval1.9+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: