Bug 40817

Summary: Web Inspector: REGRESSION (Safari 5.0-r61382): Image heights are displayed as 0
Product: WebKit Reporter: mitz
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, joepeck, keishi, pfeldman, pmuellr, rik, timothy, yurys
Priority: P1 Keywords: Regression
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed change. timothy: review+

Description mitz 2010-06-18 01:34:36 PDT
In the resources pane of the inspector, when inspecting an image resource, the height displayed below the image is always 0.
Comment 1 Pavel Feldman 2010-11-02 09:38:44 PDT
Created attachment 72679 [details]
[PATCH] Proposed change.
Comment 2 Timothy Hatcher 2010-11-02 11:02:11 PDT
Comment on attachment 72679 [details]
[PATCH] Proposed change.

View in context: https://bugs.webkit.org/attachment.cgi?id=72679&action=review

> WebCore/inspector/front-end/ImageView.js:92
> +        imagePreviewElement.onload = onImageLoad.bind(this);

Use addEventListener. .onLoad is ugh...
Comment 3 Pavel Feldman 2010-11-02 11:08:43 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
        M       WebCore/ChangeLog
        M       WebCore/inspector/front-end/ImageView.js
Committed r71133