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

Side by Side Diff: Source/core/svg/SVGElement.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 if (titleElement) 277 if (titleElement)
278 return titleElement->innerText(); 278 return titleElement->innerText();
279 279
280 // Otherwise return a null/empty string. 280 // Otherwise return a null/empty string.
281 return String(); 281 return String();
282 } 282 }
283 283
284 PassRefPtrWillBeRawPtr<CSSValue> SVGElement::getPresentationAttribute(const Atom icString& name) 284 PassRefPtrWillBeRawPtr<CSSValue> SVGElement::getPresentationAttribute(const Atom icString& name)
285 { 285 {
286 if (!hasAttributesWithoutUpdate()) 286 if (!hasAttributesWithoutUpdate())
287 return 0; 287 return nullptr;
288 288
289 QualifiedName attributeName(nullAtom, name, nullAtom); 289 QualifiedName attributeName(nullAtom, name, nullAtom);
290 const Attribute* attr = getAttributeItem(attributeName); 290 const Attribute* attr = getAttributeItem(attributeName);
291 if (!attr) 291 if (!attr)
292 return 0; 292 return nullptr;
293 293
294 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(SVGA ttributeMode); 294 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(SVGA ttributeMode);
295 CSSPropertyID propertyID = SVGElement::cssPropertyIdForSVGAttributeName(attr ->name()); 295 CSSPropertyID propertyID = SVGElement::cssPropertyIdForSVGAttributeName(attr ->name());
296 style->setProperty(propertyID, attr->value()); 296 style->setProperty(propertyID, attr->value());
297 RefPtrWillBeRawPtr<CSSValue> cssValue = style->getPropertyCSSValue(propertyI D); 297 RefPtrWillBeRawPtr<CSSValue> cssValue = style->getPropertyCSSValue(propertyI D);
298 return cssValue ? cssValue->cloneForCSSOM() : 0; 298 return cssValue ? cssValue->cloneForCSSOM() : nullptr;
299 } 299 }
300 300
301 301
302 bool SVGElement::instanceUpdatesBlocked() const 302 bool SVGElement::instanceUpdatesBlocked() const
303 { 303 {
304 return hasSVGRareData() && svgRareData()->instanceUpdatesBlocked(); 304 return hasSVGRareData() && svgRareData()->instanceUpdatesBlocked();
305 } 305 }
306 306
307 void SVGElement::setInstanceUpdatesBlocked(bool value) 307 void SVGElement::setInstanceUpdatesBlocked(bool value)
308 { 308 {
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 animatableAttributes.add(SVGNames::zAttr); 1191 animatableAttributes.add(SVGNames::zAttr);
1192 } 1192 }
1193 1193
1194 if (name == classAttr) 1194 if (name == classAttr)
1195 return true; 1195 return true;
1196 1196
1197 return animatableAttributes.contains(name); 1197 return animatableAttributes.contains(name);
1198 } 1198 }
1199 #endif 1199 #endif
1200 } 1200 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimatedNewPropertyAnimator.cpp ('k') | Source/core/svg/SVGElementInstance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698