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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "core/svg/graphics/SVGImage.h" | 30 #include "core/svg/graphics/SVGImage.h" |
31 | 31 |
32 #include "core/loader/DocumentLoader.h" | 32 #include "core/loader/DocumentLoader.h" |
33 #include "core/page/FrameView.h" | 33 #include "core/page/FrameView.h" |
34 #include "core/page/Settings.h" | 34 #include "core/page/Settings.h" |
35 #include "core/platform/graphics/GraphicsContextStateSaver.h" | 35 #include "core/platform/graphics/GraphicsContextStateSaver.h" |
36 #include "core/platform/graphics/ImageBuffer.h" | 36 #include "core/platform/graphics/ImageBuffer.h" |
37 #include "core/platform/graphics/ImageObserver.h" | 37 #include "core/platform/graphics/ImageObserver.h" |
38 #include "core/platform/graphics/IntRect.h" | 38 #include "core/platform/graphics/IntRect.h" |
39 #include "core/rendering/style/RenderStyle.h" | |
40 #include "core/rendering/svg/RenderSVGRoot.h" | 39 #include "core/rendering/svg/RenderSVGRoot.h" |
41 #include "core/svg/SVGDocument.h" | 40 #include "core/svg/SVGDocument.h" |
42 #include "core/svg/SVGSVGElement.h" | 41 #include "core/svg/SVGSVGElement.h" |
43 #include "core/svg/graphics/SVGImageChromeClient.h" | 42 #include "core/svg/graphics/SVGImageChromeClient.h" |
44 | 43 |
45 namespace WebCore { | 44 namespace WebCore { |
46 | 45 |
47 SVGImage::SVGImage(ImageObserver* observer) | 46 SVGImage::SVGImage(ImageObserver* observer) |
48 : Image(observer) | 47 : Image(observer) |
49 { | 48 { |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 void SVGImage::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | 370 void SVGImage::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
372 { | 371 { |
373 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceImage); | 372 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceImage); |
374 Image::reportMemoryUsage(memoryObjectInfo); | 373 Image::reportMemoryUsage(memoryObjectInfo); |
375 info.addMember(m_chromeClient, "chromeClient"); | 374 info.addMember(m_chromeClient, "chromeClient"); |
376 info.addMember(m_page, "page"); | 375 info.addMember(m_page, "page"); |
377 } | 376 } |
378 | 377 |
379 } | 378 } |
380 | 379 |
OLD | NEW |