Changeset 113833 in webkit
- Timestamp:
- Apr 11, 2012 12:02:17 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r113831 r113833 1 2012-04-11 Noel Gordon <noel.gordon@gmail.com> 2 3 [GTK] ImageBuffer: Canonical mimeType for encoding implies startsWith('image/') 4 https://bugs.webkit.org/show_bug.cgi?id=83657 5 6 Reviewed by Martin Robinson. 7 8 Canonical image mimeTypes begin with "image/", and this is tested by an ASSERT 9 guard in toDataURL(): that checks the WebCore mimeType registry for image-for- 10 encoding mimeType. There is no need to also test mimeType.startsWith("image/") 11 because that is a given. 12 13 No new tests. Covered by existing fast/canvas/*toDataURL* tests. 14 15 * platform/graphics/gtk/ImageBufferGtk.cpp: 16 (WebCore::ImageBuffer::toDataURL): 17 1 18 2012-04-10 Carlos Garcia Campos <cgarcia@igalia.com> 2 19 -
trunk/Source/WebCore/platform/graphics/gtk/ImageBufferGtk.cpp
r113742 r113833 59 59 ASSERT(MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(mimeType)); 60 60 61 if (!mimeType.startsWith("image/"))62 return "data:,";63 64 61 GOwnPtr<gchar> buffer(0); 65 62 gsize bufferSize;
Note: See TracChangeset
for help on using the changeset viewer.