On Apr 18, 11:12 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Can you please help me understand how nsImageLoader::Load() work?
>
> The first thing to understand is that this method no longer does any
> loading. It just takes an existing handle to an image request and sets
> up a clone with a different listener to be notified as the load
> proceeds. The actual load is done elsewhere, typically by calling
> imgILoader::Load via nsContentUtils::LoadImage.
>
> -Boris
Thank you for your help.
>From the debugger, i see when an image finished loading, it will
trigger a RestyleEvent in CSS.
Can you please tell me where is the code which puts the RestyleEvent
in the event queue? Which causes the RestyleEvent in
nsCSSFrameConstructor to be exectued?
#6 0xb6b59947 in HandleRestyleEvent (aEvent=0x82e5510)
at mozilla/layout/base/nsCSSFrameConstructor.cpp:14280
Thank you.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout