OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. |
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 FloatPoint destOffset = dstRect.location() - topLeftOffset; | 210 FloatPoint destOffset = dstRect.location() - topLeftOffset; |
211 | 211 |
212 context->translate(destOffset.x(), destOffset.y()); | 212 context->translate(destOffset.x(), destOffset.y()); |
213 context->scale(scale); | 213 context->scale(scale); |
214 | 214 |
215 view->resize(containerSize()); | 215 view->resize(containerSize()); |
216 | 216 |
217 if (view->needsLayout()) | 217 if (view->needsLayout()) |
218 view->layout(); | 218 view->layout(); |
219 | 219 |
220 view->paint(context, IntRect(0, 0, view->width(), view->height())); | 220 view->paint(context, enclosingIntRect(srcRect)); |
221 | 221 |
222 if (compositeOp != CompositeSourceOver) | 222 if (compositeOp != CompositeSourceOver) |
223 context->endTransparencyLayer(); | 223 context->endTransparencyLayer(); |
224 | 224 |
225 stateSaver.restore(); | 225 stateSaver.restore(); |
226 | 226 |
227 if (imageObserver()) | 227 if (imageObserver()) |
228 imageObserver()->didDraw(this); | 228 imageObserver()->didDraw(this); |
229 } | 229 } |
230 | 230 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 void SVGImage::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | 371 void SVGImage::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
372 { | 372 { |
373 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceImage); | 373 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceImage); |
374 Image::reportMemoryUsage(memoryObjectInfo); | 374 Image::reportMemoryUsage(memoryObjectInfo); |
375 info.addMember(m_chromeClient, "chromeClient"); | 375 info.addMember(m_chromeClient, "chromeClient"); |
376 info.addMember(m_page, "page"); | 376 info.addMember(m_page, "page"); |
377 } | 377 } |
378 | 378 |
379 } | 379 } |
380 | 380 |
OLD | NEW |