Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp

Issue 2191633003: Move ResourceClient to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onheap-raw-resource-client
Patch Set: build fix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 m_cachedImage = nullptr; 48 m_cachedImage = nullptr;
49 } 49 }
50 } 50 }
51 51
52 DEFINE_TRACE(SVGFEImageElement) 52 DEFINE_TRACE(SVGFEImageElement)
53 { 53 {
54 visitor->trace(m_preserveAspectRatio); 54 visitor->trace(m_preserveAspectRatio);
55 visitor->trace(m_cachedImage); 55 visitor->trace(m_cachedImage);
56 SVGFilterPrimitiveStandardAttributes::trace(visitor); 56 SVGFilterPrimitiveStandardAttributes::trace(visitor);
57 SVGURIReference::trace(visitor); 57 SVGURIReference::trace(visitor);
58 ResourceClient::trace(visitor);
58 } 59 }
59 60
60 bool SVGFEImageElement::currentFrameHasSingleSecurityOrigin() const 61 bool SVGFEImageElement::currentFrameHasSingleSecurityOrigin() const
61 { 62 {
62 if (m_cachedImage && m_cachedImage->getImage()) 63 if (m_cachedImage && m_cachedImage->getImage())
63 return m_cachedImage->getImage()->currentFrameHasSingleSecurityOrigin(); 64 return m_cachedImage->getImage()->currentFrameHasSingleSecurityOrigin();
64 65
65 return true; 66 return true;
66 } 67 }
67 68
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Don't use the broken image icon on image loading errors. 159 // Don't use the broken image icon on image loading errors.
159 RefPtr<Image> image = m_cachedImage->errorOccurred() ? 160 RefPtr<Image> image = m_cachedImage->errorOccurred() ?
160 nullptr : m_cachedImage->getImage(); 161 nullptr : m_cachedImage->getImage();
161 return FEImage::createWithImage(filter, image, m_preserveAspectRatio->cu rrentValue()); 162 return FEImage::createWithImage(filter, image, m_preserveAspectRatio->cu rrentValue());
162 } 163 }
163 164
164 return FEImage::createWithIRIReference(filter, treeScope(), hrefString(), m_ preserveAspectRatio->currentValue()); 165 return FEImage::createWithIRIReference(filter, treeScope(), hrefString(), m_ preserveAspectRatio->currentValue());
165 } 166 }
166 167
167 } // namespace blink 168 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp ('k') | third_party/WebKit/Source/wtf/HashCountedSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698