Changeset 152086 in webkit
- Timestamp:
- Jun 27, 2013 3:10:08 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r152085 r152086 1 2013-06-27 Csaba Osztrogonác <ossy@webkit.org> 2 3 Fix cast-align warnings in WebCore/platform/graphics/cairo 4 https://bugs.webkit.org/show_bug.cgi?id=117990 5 6 Reviewed by Rob Buis. 7 8 * platform/graphics/cairo/BitmapImageCairo.cpp: 9 (WebCore::BitmapImage::checkForSolidColor): 10 * platform/graphics/cairo/ImageBufferCairo.cpp: 11 (WebCore::ImageBuffer::platformTransformColorSpace): 12 (WebCore::getImageData): 13 (WebCore::ImageBuffer::putByteArray): 14 1 15 2013-06-27 Szabolcs Dávid <davidsz@inf.u-szeged.hu> 2 16 -
trunk/Source/WebCore/platform/graphics/cairo/BitmapImageCairo.cpp
r147643 r152086 148 148 return; 149 149 150 unsigned* pixelColor = reinterpret_cast <unsigned*>(cairo_image_surface_get_data(surface.get()));150 unsigned* pixelColor = reinterpret_cast_ptr<unsigned*>(cairo_image_surface_get_data(surface.get())); 151 151 m_solidColor = colorFromPremultipliedARGB(*pixelColor); 152 152 -
trunk/Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp
r149894 r152086 167 167 int stride = cairo_image_surface_get_stride(m_data.m_surface.get()); 168 168 for (int y = 0; y < m_size.height(); ++y) { 169 unsigned* row = reinterpret_cast <unsigned*>(dataSrc + stride * y);169 unsigned* row = reinterpret_cast_ptr<unsigned*>(dataSrc + stride * y); 170 170 for (int x = 0; x < m_size.width(); x++) { 171 171 unsigned* pixel = row + x; … … 253 253 unsigned char* destRows = dataDst + desty * destBytesPerRow + destx * 4; 254 254 for (int y = 0; y < numRows; ++y) { 255 unsigned* row = reinterpret_cast <unsigned*>(dataSrc + stride * (y + originy));255 unsigned* row = reinterpret_cast_ptr<unsigned*>(dataSrc + stride * (y + originy)); 256 256 for (int x = 0; x < numColumns; x++) { 257 257 int basex = x * 4; … … 331 331 unsigned char* srcRows = source->data() + originy * srcBytesPerRow + originx * 4; 332 332 for (int y = 0; y < numRows; ++y) { 333 unsigned* row = reinterpret_cast <unsigned*>(dataDst + stride * (y + desty));333 unsigned* row = reinterpret_cast_ptr<unsigned*>(dataDst + stride * (y + desty)); 334 334 for (int x = 0; x < numColumns; x++) { 335 335 int basex = x * 4;
Note: See TracChangeset
for help on using the changeset viewer.