Changeset 36446 in webkit
- Timestamp:
- Sep 15, 2008 10:10:48 AM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r36444 r36446 1 2008-09-15 Simon Fraser <simon.fraser@apple.com> 2 3 Reviewed by Dan Bernstein 4 5 Fix assertion and integral pixel issue when creating subimages. 6 https://bugs.webkit.org/show_bug.cgi?id=20786 7 8 * platform/graphics/cg/ImageCG.cpp: 9 (WebCore::BitmapImage::draw): 10 1 11 2008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com> 2 12 -
trunk/WebCore/platform/graphics/cg/ImageCG.cpp
r36069 r36446 164 164 image = CGImageCreateWithImageInRect(image, srcRect); 165 165 if (currHeight < srcRect.bottom()) { 166 ASSERT(CGImageGetHeight(image) == currHeight - srcRect.y());167 adjustedDestRect.setHeight(destRect.height() / srcRect.height() * (currHeight - srcRect.y()));166 ASSERT(CGImageGetHeight(image) == currHeight - CGRectIntegral(srcRect).origin.y); 167 adjustedDestRect.setHeight(destRect.height() / srcRect.height() * CGImageGetHeight(image)); 168 168 } 169 169 } else {
Note: See TracChangeset
for help on using the changeset viewer.