WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
21847
MIMETypeRegistry.cpp uses #if PLATFORM(CG), should it look for CF?
https://bugs.webkit.org/show_bug.cgi?id=21847
Summary
MIMETypeRegistry.cpp uses #if PLATFORM(CG), should it look for CF?
Mark Mentovai
Reported
2008-10-23 18:29:55 PDT
In WebCore/platform/MIMETypeRegistry.cpp, initializeSupportedImageMIMETypes and initializeSupportedImageMIMETypesForEncoding both have some code that's #if PLATFORM(CG), gating what looks more like CF code having nothing to do with graphics. Should these #ifs change to #if PLATFORM(CF)?
Attachments
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2008-10-23 19:08:47 PDT
The #if PLATFORM(CG) in initializeSupportedImageMIMETypes and initializeSupportedImageMIMETypesForEncoding are CG related because it calls CGImageSourceCopyTypeIdentifiers() and CGImageDestinationCopyTypeIdentifiers(). The getMIMETypeForUTI is also #if PLATFORM(CG) that way because it is a helper that is only called from other #if PLATFORM(CG) in the file. What were you thinking was CFish and not CGish?
Mark Mentovai
Comment 2
2008-10-24 10:32:22 PDT
The CG calls were at the ends of long lines and I guess I missed them in the sea of CF. You're right, there's definitely CG in there.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug