Chromium Code Reviews

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 45 matching lines...)
56 DEFINE_TRACE(SVGFEImageElement) 56 DEFINE_TRACE(SVGFEImageElement)
57 { 57 {
58 visitor->trace(m_preserveAspectRatio); 58 visitor->trace(m_preserveAspectRatio);
59 visitor->trace(m_cachedImage); 59 visitor->trace(m_cachedImage);
60 SVGFilterPrimitiveStandardAttributes::trace(visitor); 60 SVGFilterPrimitiveStandardAttributes::trace(visitor);
61 SVGURIReference::trace(visitor); 61 SVGURIReference::trace(visitor);
62 } 62 }
63 63
64 bool SVGFEImageElement::currentFrameHasSingleSecurityOrigin() const 64 bool SVGFEImageElement::currentFrameHasSingleSecurityOrigin() const
65 { 65 {
66 if (m_cachedImage && m_cachedImage->image()) 66 if (m_cachedImage && m_cachedImage->getImage())
67 return m_cachedImage->image()->currentFrameHasSingleSecurityOrigin(); 67 return m_cachedImage->getImage()->currentFrameHasSingleSecurityOrigin();
68 68
69 return true; 69 return true;
70 } 70 }
71 71
72 void SVGFEImageElement::clearResourceReferences() 72 void SVGFEImageElement::clearResourceReferences()
73 { 73 {
74 if (m_cachedImage) { 74 if (m_cachedImage) {
75 m_cachedImage->removeClient(this); 75 m_cachedImage->removeClient(this);
76 m_cachedImage = nullptr; 76 m_cachedImage = nullptr;
77 } 77 }
(...skipping 76 matching lines...)
154 154
155 if (LayoutObject* layoutObject = this->layoutObject()) 155 if (LayoutObject* layoutObject = this->layoutObject())
156 markForLayoutAndParentResourceInvalidation(layoutObject); 156 markForLayoutAndParentResourceInvalidation(layoutObject);
157 } 157 }
158 158
159 PassRefPtrWillBeRawPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* filter) 159 PassRefPtrWillBeRawPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* filter)
160 { 160 {
161 if (m_cachedImage) { 161 if (m_cachedImage) {
162 // Don't use the broken image icon on image loading errors. 162 // Don't use the broken image icon on image loading errors.
163 RefPtr<Image> image = m_cachedImage->errorOccurred() ? 163 RefPtr<Image> image = m_cachedImage->errorOccurred() ?
164 nullptr : m_cachedImage->image(); 164 nullptr : m_cachedImage->getImage();
165 return FEImage::createWithImage(filter, image, m_preserveAspectRatio->cu rrentValue()); 165 return FEImage::createWithImage(filter, image, m_preserveAspectRatio->cu rrentValue());
166 } 166 }
167 167
168 return FEImage::createWithIRIReference(filter, treeScope(), hrefString(), m_ preserveAspectRatio->currentValue()); 168 return FEImage::createWithIRIReference(filter, treeScope(), hrefString(), m_ preserveAspectRatio->currentValue());
169 } 169 }
170 170
171 } // namespace blink 171 } // namespace blink
OLDNEW

Powered by Google App Engine