On Apr 11, 9:41 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Thank you. When firefox first load an image, it first draw a 'broken > > image' icon and then alt text of the image. > > Then after the image loaded, it repainted it with the real image. > > > Can you please tell me what method trigger when the image is loaded > > and causes a repaint? > > If we're talking about HTML <img> tags, there's the code that sends state > change > notifications in nsImageLoadingContent. Those trigger a frame reconstruct, > etc. > > -Boris
Boris, Thank you. I have one more question. When I disabled image in firefox, Firefox will just draw the 'alt' text, but Firefox does not take into the account of the image dimension and the text below the image got moved up. Take www.cnn.com main story as an example. If I disable the image loading in Firefox, the text of the main story (right under the image of the main story) got moved up and the dimension of the main image is not honored. Can you please tell me why is there? Where in the code shift the text up when image loading is disabled? Thank you for any pointers. _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

