[Webkit-unassigned] [Bug 19964] divide by zero crash in RenderBox::calculateBackgroundSize with 0, 0 bmp background image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 25 10:32:30 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=19964





------- Comment #3 from chrisb at adobe.com  2008-07-25 10:32 PDT -------
I suspect change set 31981 introduced this bug when it removed the following
statements from RenderBox::imageChanged:

if (!image || !image->canRender(style()->effectiveZoom()) || !parent() ||
!view()) 
        return;

canRender will return false if the image is zero width or zero height.  If we
take the early out in RenderBox::imageChanged we never call
calculateBackgroundSize, which assumes that any background images have non-zero
height.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list