Closed Bug 819837 Opened 12 years ago Closed 12 years ago

Always treat empty images as being background-attachment:scroll

Categories

(Core :: Layout, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: mattwoodrow, Unassigned)

Details

Attachments

(1 file)

This was returning a background positioning area relative to the viewport, but we don't fix the display item when it doesn't have an image.

DLBI was then attempting to shift the positioning area to compensate for scroll changes, and we detecting that the background moved.

A nicer fix would be to split nsDisplayCanvasBackground into separate color/image items, and then not even create the image items if they are empty.
Attachment #690264 - Flags: review?(roc)
Attachment #690264 - Attachment is patch: true
It should be pretty easy to use paint_listener.js to write a testcase for this. Please do.
https://hg.mozilla.org/mozilla-central/rev/222b76f9fa95
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: