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

Side by Side Diff: Source/core/svg/SVGFELightElement.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGFEGaussianBlurElement.cpp ('k') | Source/core/svg/SVGFEMergeElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com>
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 if (isSVGFELightElement(*node)) 68 if (isSVGFELightElement(*node))
69 return toSVGFELightElement(node); 69 return toSVGFELightElement(node);
70 } 70 }
71 return 0; 71 return 0;
72 } 72 }
73 73
74 PassRefPtr<LightSource> SVGFELightElement::findLightSource(const SVGElement* svg Element) 74 PassRefPtr<LightSource> SVGFELightElement::findLightSource(const SVGElement* svg Element)
75 { 75 {
76 SVGFELightElement* lightNode = findLightElement(svgElement); 76 SVGFELightElement* lightNode = findLightElement(svgElement);
77 if (!lightNode) 77 if (!lightNode)
78 return 0; 78 return nullptr;
79 return lightNode->lightSource(); 79 return lightNode->lightSource();
80 } 80 }
81 81
82 bool SVGFELightElement::isSupportedAttribute(const QualifiedName& attrName) 82 bool SVGFELightElement::isSupportedAttribute(const QualifiedName& attrName)
83 { 83 {
84 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 84 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
85 if (supportedAttributes.isEmpty()) { 85 if (supportedAttributes.isEmpty()) {
86 supportedAttributes.add(SVGNames::azimuthAttr); 86 supportedAttributes.add(SVGNames::azimuthAttr);
87 supportedAttributes.add(SVGNames::elevationAttr); 87 supportedAttributes.add(SVGNames::elevationAttr);
88 supportedAttributes.add(SVGNames::xAttr); 88 supportedAttributes.add(SVGNames::xAttr);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 if (!changedByParser) { 178 if (!changedByParser) {
179 if (ContainerNode* parent = parentNode()) { 179 if (ContainerNode* parent = parentNode()) {
180 RenderObject* renderer = parent->renderer(); 180 RenderObject* renderer = parent->renderer();
181 if (renderer && renderer->isSVGResourceFilterPrimitive()) 181 if (renderer && renderer->isSVGResourceFilterPrimitive())
182 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re nderer); 182 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re nderer);
183 } 183 }
184 } 184 }
185 } 185 }
186 186
187 } 187 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEGaussianBlurElement.cpp ('k') | Source/core/svg/SVGFEMergeElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698