Changeset 116907 in webkit
- Timestamp:
- May 13, 2012 4:42:24 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116906 r116907 1 2012-05-13 Darin Adler <darin@apple.com> 2 3 Image::initPlatformData is always an empty function so we can remove it 4 https://bugs.webkit.org/show_bug.cgi?id=86297 5 6 Reviewed by Dan Bernstein. 7 8 * platform/graphics/BitmapImage.h: Removed declaration of initPlatformData. 9 10 * platform/graphics/BitmapImage.cpp: 11 (WebCore::BitmapImage::BitmapImage): Removed call to initPlatformData. 12 * platform/graphics/cairo/BitmapImageCairo.cpp: 13 (WebCore::BitmapImage::BitmapImage): Ditto. 14 * platform/graphics/cg/ImageCG.cpp: 15 (WebCore::BitmapImage::BitmapImage): Ditto. 16 * platform/graphics/chromium/ImageChromiumMac.mm: Removed empty 17 initPlatformData function. 18 * platform/graphics/efl/ImageEfl.cpp: Ditto. 19 * platform/graphics/gtk/ImageGtk.cpp: 20 * platform/graphics/mac/ImageMac.mm: 21 * platform/graphics/openvg/ImageOpenVG.cpp: 22 (WebCore::BitmapImage::BitmapImage): Removed call to initPlatformData. 23 Removed empty initPlatformData function. 24 * platform/graphics/qt/ImageQt.cpp: 25 (WebCore::BitmapImage::BitmapImage): Removed call to initPlatformData. 26 Removed empty initPlatformData function. 27 * platform/graphics/skia/ImageSkia.cpp: Removed empty initPlatformData function. 28 * platform/graphics/win/ImageWin.cpp: Ditto. 29 * platform/graphics/wx/ImageWx.cpp: Ditto. 30 (WebCore::BitmapImage::BitmapImage): Removed call to initPlatformData. 31 1 32 2012-05-13 Darin Adler <darin@apple.com> 2 33 -
trunk/Source/WebCore/platform/graphics/BitmapImage.cpp
r113486 r116907 65 65 , m_haveFrameCount(false) 66 66 { 67 initPlatformData();68 67 } 69 68 -
trunk/Source/WebCore/platform/graphics/BitmapImage.h
r115385 r116907 255 255 256 256 // Handle platform-specific data 257 void initPlatformData();258 257 void invalidatePlatformData(); 259 258 -
trunk/Source/WebCore/platform/graphics/cairo/BitmapImageCairo.cpp
r115385 r116907 59 59 , m_haveFrameCount(true) 60 60 { 61 initPlatformData();62 63 61 cairo_surface_t* surface = nativeImage->surface(); 64 62 int width = cairo_image_surface_get_width(surface); -
trunk/Source/WebCore/platform/graphics/cg/ImageCG.cpp
r116905 r116907 87 87 , m_haveFrameCount(true) 88 88 { 89 initPlatformData();90 91 89 CGFloat width = CGImageGetWidth(cgImage); 92 90 CGFloat height = CGImageGetHeight(cgImage); -
trunk/Source/WebCore/platform/graphics/efl/ImageEfl.cpp
r95901 r116907 38 38 namespace WebCore { 39 39 40 void BitmapImage::initPlatformData()41 {42 }43 44 40 void BitmapImage::invalidatePlatformData() 45 41 { -
trunk/Source/WebCore/platform/graphics/gtk/ImageGtk.cpp
r115385 r116907 74 74 } 75 75 76 void BitmapImage::initPlatformData()77 {78 }79 80 76 void BitmapImage::invalidatePlatformData() 81 77 { -
trunk/Source/WebCore/platform/graphics/mac/ImageMac.mm
r94900 r116907 39 39 40 40 namespace WebCore { 41 42 void BitmapImage::initPlatformData()43 {44 }45 41 46 42 void BitmapImage::invalidatePlatformData() -
trunk/Source/WebCore/platform/graphics/openvg/ImageOpenVG.cpp
r102404 r116907 71 71 , m_haveFrameCount(true) 72 72 { 73 initPlatformData();74 75 73 ASSERT(m_size.width() > 0); 76 74 ASSERT(m_size.height() > 0); … … 102 100 103 101 m_checkedForSolidColor = true; 104 }105 106 void BitmapImage::initPlatformData()107 {108 102 } 109 103 -
trunk/Source/WebCore/platform/graphics/qt/ImageQt.cpp
r107811 r116907 203 203 , m_haveFrameCount(true) 204 204 { 205 initPlatformData();206 207 205 int width = pixmap->width(); 208 206 int height = pixmap->height(); … … 215 213 m_frames[0].m_haveMetadata = true; 216 214 checkForSolidColor(); 217 }218 219 void BitmapImage::initPlatformData()220 {221 215 } 222 216 -
trunk/Source/WebCore/platform/graphics/skia/ImageSkia.cpp
r116806 r116907 384 384 // FIXME: These should go to BitmapImageSkia.cpp 385 385 386 void BitmapImage::initPlatformData()387 {388 // This is not used. On Mac, the "platform" data is a cache of some OS389 // specific versions of the image that are created is some cases. These390 // aren't normally used, it is equivalent to getHBITMAP on Windows, and391 // the platform data is the cache.392 }393 394 386 void BitmapImage::invalidatePlatformData() 395 387 { 396 // See initPlatformData above.397 388 } 398 389 -
trunk/Source/WebCore/platform/graphics/win/ImageWin.cpp
r35738 r116907 35 35 namespace WebCore { 36 36 37 void BitmapImage::initPlatformData()38 {39 }40 41 37 void BitmapImage::invalidatePlatformData() 42 38 { -
trunk/Source/WebCore/platform/graphics/wx/ImageWx.cpp
r112670 r116907 81 81 } 82 82 83 void BitmapImage::initPlatformData()84 {85 // FIXME: NYI86 }87 88 83 BitmapImage::BitmapImage(const wxBitmap& bitmap) 89 84 : Image(0) … … 104 99 , m_frameCount(1) 105 100 { 106 initPlatformData();107 108 101 m_decodedSize = bitmap.GetWidth() * bitmap.GetHeight() * 4; 109 102 m_size = IntSize(bitmap.GetWidth(), bitmap.GetHeight());
Note: See TracChangeset
for help on using the changeset viewer.