OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 2 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #include "config.h" | 21 #include "config.h" |
22 #include "core/svg/graphics/SVGImageCache.h" | 22 #include "core/svg/graphics/SVGImageCache.h" |
23 | 23 |
24 #include "core/fetch/ImageResource.h" | 24 #include "core/fetch/ImageResource.h" |
25 #include "core/frame/FrameView.h" | 25 #include "core/frame/FrameView.h" |
26 #include "core/page/Page.h" | 26 #include "core/page/Page.h" |
27 #include "core/platform/graphics/GraphicsContext.h" | |
28 #include "core/platform/graphics/ImageBuffer.h" | |
29 #include "core/rendering/svg/RenderSVGRoot.h" | 27 #include "core/rendering/svg/RenderSVGRoot.h" |
30 #include "core/svg/graphics/SVGImage.h" | 28 #include "core/svg/graphics/SVGImage.h" |
31 #include "core/svg/graphics/SVGImageForContainer.h" | 29 #include "core/svg/graphics/SVGImageForContainer.h" |
| 30 #include "platform/graphics/GraphicsContext.h" |
| 31 #include "platform/graphics/ImageBuffer.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 SVGImageCache::SVGImageCache(SVGImage* svgImage) | 35 SVGImageCache::SVGImageCache(SVGImage* svgImage) |
36 : m_svgImage(svgImage) | 36 : m_svgImage(svgImage) |
37 { | 37 { |
38 ASSERT(m_svgImage); | 38 ASSERT(m_svgImage); |
39 } | 39 } |
40 | 40 |
41 SVGImageCache::~SVGImageCache() | 41 SVGImageCache::~SVGImageCache() |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 ImageForContainerMap::iterator it = m_imageForContainerMap.find(renderer); | 86 ImageForContainerMap::iterator it = m_imageForContainerMap.find(renderer); |
87 if (it == m_imageForContainerMap.end()) | 87 if (it == m_imageForContainerMap.end()) |
88 return Image::nullImage(); | 88 return Image::nullImage(); |
89 | 89 |
90 RefPtr<SVGImageForContainer> imageForContainer = it->value; | 90 RefPtr<SVGImageForContainer> imageForContainer = it->value; |
91 ASSERT(!imageForContainer->size().isEmpty()); | 91 ASSERT(!imageForContainer->size().isEmpty()); |
92 return imageForContainer.get(); | 92 return imageForContainer.get(); |
93 } | 93 } |
94 | 94 |
95 } // namespace WebCore | 95 } // namespace WebCore |
OLD | NEW |