Commit 190e4057 authored by darin@apple.com's avatar darin@apple.com

Requested by Steve.

        * platform/graphics/cg/ImageSourceCG.cpp:
        (WebCore::ImageSource::createFrameAtIndex): Put the string into a global
        variable (because CFSTR is inefficient on Windows).



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c06878b4
2008-02-25 Darin Adler <darin@apple.com>
Requested by Steve.
* platform/graphics/cg/ImageSourceCG.cpp:
(WebCore::ImageSource::createFrameAtIndex): Put the string into a global
variable (because CFSTR is inefficient on Windows).
2008-02-25 Darin Adler <darin@apple.com>
Reviewed by Adam.
......@@ -156,7 +156,8 @@ CGImageRef ImageSource::createFrameAtIndex(size_t index)
{
CGImageRef image = CGImageSourceCreateImageAtIndex(m_decoder, index, imageSourceOptions());
CFStringRef imageUTI = CGImageSourceGetType(m_decoder);
if (!imageUTI || !CFEqual(imageUTI, CFSTR("public.xbitmap-image")))
static const CFStringRef xbmUTI = CFSTR("public.xbitmap-image");
if (!imageUTI || !CFEqual(imageUTI, xbmUTI))
return image;
// If it is an xbm image, mask out all the white areas to render them transparent.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment