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

Side by Side Diff: Source/core/svg/SVGUseElement.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/SVGTransformListTearOff.cpp ('k') | Source/core/svg/SVGViewSpec.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, 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, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
6 * Copyright (C) 2012 University of Szeged 6 * Copyright (C) 2012 University of Szeged
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 } 361 }
362 362
363 void SVGUseElement::clearResourceReferences() 363 void SVGUseElement::clearResourceReferences()
364 { 364 {
365 // FIXME: We should try to optimize this, to at least allow partial reclones . 365 // FIXME: We should try to optimize this, to at least allow partial reclones .
366 if (ShadowRoot* shadowTreeRootElement = userAgentShadowRoot()) 366 if (ShadowRoot* shadowTreeRootElement = userAgentShadowRoot())
367 shadowTreeRootElement->removeChildren(); 367 shadowTreeRootElement->removeChildren();
368 368
369 if (m_targetElementInstance) { 369 if (m_targetElementInstance) {
370 m_targetElementInstance->detach(); 370 m_targetElementInstance->detach();
371 m_targetElementInstance = 0; 371 m_targetElementInstance = nullptr;
372 } 372 }
373 373
374 m_needsShadowTreeRecreation = false; 374 m_needsShadowTreeRecreation = false;
375 document().unscheduleUseShadowTreeUpdate(*this); 375 document().unscheduleUseShadowTreeUpdate(*this);
376 376
377 document().accessSVGExtensions()->removeAllTargetReferencesForElement(this); 377 document().accessSVGExtensions()->removeAllTargetReferencesForElement(this);
378 } 378 }
379 379
380 void SVGUseElement::buildPendingResource() 380 void SVGUseElement::buildPendingResource()
381 { 381 {
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 981
982 if (m_resource) 982 if (m_resource)
983 m_resource->removeClient(this); 983 m_resource->removeClient(this);
984 984
985 m_resource = resource; 985 m_resource = resource;
986 if (m_resource) 986 if (m_resource)
987 m_resource->addClient(this); 987 m_resource->addClient(this);
988 } 988 }
989 989
990 } 990 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTransformListTearOff.cpp ('k') | Source/core/svg/SVGViewSpec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698