| 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 10 matching lines...) Expand all Loading... |
| 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 | 29 |
| 30 #if ENABLE(SVG) | 30 #if ENABLE(SVG) |
| 31 #include "SVGImage.h" | 31 #include "core/svg/graphics/SVGImage.h" |
| 32 | 32 |
| 33 #include "SVGDocument.h" | 33 #include "SVGDocument.h" |
| 34 #include "SVGImageChromeClient.h" | |
| 35 #include "SVGSVGElement.h" | 34 #include "SVGSVGElement.h" |
| 36 #include "core/loader/DocumentLoader.h" | 35 #include "core/loader/DocumentLoader.h" |
| 37 #include "core/page/FrameView.h" | 36 #include "core/page/FrameView.h" |
| 38 #include "core/page/Settings.h" | 37 #include "core/page/Settings.h" |
| 39 #include "core/platform/graphics/ImageBuffer.h" | 38 #include "core/platform/graphics/ImageBuffer.h" |
| 40 #include "core/platform/graphics/ImageObserver.h" | 39 #include "core/platform/graphics/ImageObserver.h" |
| 41 #include "core/platform/graphics/IntRect.h" | 40 #include "core/platform/graphics/IntRect.h" |
| 42 #include "core/rendering/style/RenderStyle.h" | 41 #include "core/rendering/style/RenderStyle.h" |
| 43 #include "core/rendering/svg/RenderSVGRoot.h" | 42 #include "core/rendering/svg/RenderSVGRoot.h" |
| 43 #include "core/svg/graphics/SVGImageChromeClient.h" |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace WebCore { |
| 46 | 46 |
| 47 SVGImage::SVGImage(ImageObserver* observer) | 47 SVGImage::SVGImage(ImageObserver* observer) |
| 48 : Image(observer) | 48 : Image(observer) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 SVGImage::~SVGImage() | 52 SVGImage::~SVGImage() |
| 53 { | 53 { |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 { | 371 { |
| 372 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceImage); | 372 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceImage); |
| 373 Image::reportMemoryUsage(memoryObjectInfo); | 373 Image::reportMemoryUsage(memoryObjectInfo); |
| 374 info.addMember(m_chromeClient, "chromeClient"); | 374 info.addMember(m_chromeClient, "chromeClient"); |
| 375 info.addMember(m_page, "page"); | 375 info.addMember(m_page, "page"); |
| 376 } | 376 } |
| 377 | 377 |
| 378 } | 378 } |
| 379 | 379 |
| 380 #endif // ENABLE(SVG) | 380 #endif // ENABLE(SVG) |
| OLD | NEW |