Logo Search packages:      
Sourcecode: xulrunner version File versions

nsStubImageDecoderObserver Class Reference

#include <nsStubImageDecoderObserver.h>

Inherited by nsBulletListener, nsImageBoxListener, nsImageDocument, nsImageListener, nsImageLoader, nsSVGImageListener, and nsTreeImageListener.

Detailed Description

There are two advantages to inheriting from nsStubImageDecoderObserver rather than directly from imgIDecoderObserver: 1. smaller compiled code size (since there's no need for the code for the empty virtual function implementations for every imgIDecoderObserver implementation) 2. the performance of document's loop over observers benefits from the fact that more of the functions called are the same (which can reduce instruction cache misses and perhaps improve branch prediction)

Definition at line 61 of file nsStubImageDecoderObserver.h.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index