Open Bug 1254360 Opened 5 years ago Updated 3 years ago

Stop accessing the imgIContainer's width and height in nsDisplayImage::ConfigureLayer and related methods

Categories

(Core :: ImageLib, defect, P3)

defect

Tracking

()

People

(Reporter: seth, Assigned: seth)

References

Details

(Keywords: feature, Whiteboard: [gfx-noted])

In bug 1251804 we updated nsDisplayImage::ConfigureLayer (and the related ConfigureLayer() methods from other image-related display list items) to scale the layer's transform based on the ImageContainer being used, rather than on the imgIContainer's size. However, to avoid changing error-handling behavior, we continued to check that the imgIContainer's width and height were available.

In this followup, let's remove that check, since it should not be necessary. (And it adds a substantial number of lines of code.)
Keywords: feature
Whiteboard: [gfx-noted]
You need to log in before you can comment on or make changes to this bug.