[Webkit-unassigned] [Bug 121068] New: On ImageDocument, checking for FrameView is needed before ShrinkToFit
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 9 19:18:11 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=121068
Summary: On ImageDocument, checking for FrameView is needed
before ShrinkToFit
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Images
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ktf.kim at samsung.com
Created an attachment (id=211136)
--> (https://bugs.webkit.org/attachment.cgi?id=211136&action=review)
PNG image
When you load a image like file:///PNG.png, the ImageDocument is generated,
then if it should shrink to fit, the scale for the image to fit is calculated, and the image's size is inserted.
However, if ImageDocument::imageUpdated is called before the FrameView's size is not yet updated,
the scale is calculated as 0 on ImageDocument::scale, and the image's size is set to 0 on ImageDocument::resizeImageToFit.
Then the size is not changed after that because ImageDocument::m_imageSizeIsKnown is set.
So, in this case, check the FrameView's size and not to set ImageDocument::m_imageSizeIsKnown is needed.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list