use new function to get global.

git-svn-id: svn://10.0.0.236/trunk@9015 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com 1998-09-01 20:18:23 +00:00
parent 828552e105
commit b34a4917dc

View File

@ -47,7 +47,7 @@ CImageIconMixin :: CImageIconMixin ( const string & inURL )
//
CImageIconMixin :: ~CImageIconMixin ( )
{
gIconCache.ListenerGoingAway ( mURL, this );
gImageCache().ListenerGoingAway ( mURL, this );
}
@ -77,12 +77,12 @@ CImageIconMixin :: DrawImage ( const Point & inTopLeft, const IconTransformType
Uint32 inWidth, Uint32 inHeight ) const
{
try {
if ( gIconCache.RequestIcon(mURL, this) == CIconCache::kDataPresent ) {
if ( gImageCache().RequestIcon(mURL, this) == CImageCache::kDataPresent ) {
StColorState::Normalize();
DrawingState state;
state.copyMode = srcCopy;
gIconCache.FetchImageData ( mURL, &state.pixmap, &state.mask );
gImageCache().FetchImageData ( mURL, &state.pixmap, &state.mask );
LockFEPixmapBuffer ( state.pixmap ) ;
LockFEPixmapBuffer ( state.mask );
@ -131,7 +131,7 @@ CImageIconMixin :: DoDrawing ( DrawingState & inState, const Point & inTopLeft,
void
CImageIconMixin :: SetImageURL ( const string & inNewURL )
{
gIconCache.ListenerGoingAway ( mURL, this );
gImageCache().ListenerGoingAway ( mURL, this );
mURL = inNewURL;
} // SetImageURL