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

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

Issue 924943009: Fix template angle bracket syntax in svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/svg/SVGDocumentExtensions.h ('k') | Source/core/svg/SVGElement.h » ('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) 2006 Apple Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2007 Rob Buis <buis@kde.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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 153
154 void SVGDocumentExtensions::addPendingResource(const AtomicString& id, Element* element) 154 void SVGDocumentExtensions::addPendingResource(const AtomicString& id, Element* element)
155 { 155 {
156 ASSERT(element); 156 ASSERT(element);
157 ASSERT(element->inDocument()); 157 ASSERT(element->inDocument());
158 158
159 if (id.isEmpty()) 159 if (id.isEmpty())
160 return; 160 return;
161 161
162 WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<SVGPendingElements> >::Ad dResult result = m_pendingResources.add(id, nullptr); 162 WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<SVGPendingElements>>::Add Result result = m_pendingResources.add(id, nullptr);
163 if (result.isNewEntry) 163 if (result.isNewEntry)
164 result.storedValue->value = adoptPtrWillBeNoop(new SVGPendingElements); 164 result.storedValue->value = adoptPtrWillBeNoop(new SVGPendingElements);
165 result.storedValue->value->add(element); 165 result.storedValue->value->add(element);
166 166
167 element->setHasPendingResources(); 167 element->setHasPendingResources();
168 } 168 }
169 169
170 bool SVGDocumentExtensions::hasPendingResource(const AtomicString& id) const 170 bool SVGDocumentExtensions::hasPendingResource(const AtomicString& id) const
171 { 171 {
172 if (id.isEmpty()) 172 if (id.isEmpty())
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 #if ENABLE(OILPAN) 366 #if ENABLE(OILPAN)
367 visitor->trace(m_document); 367 visitor->trace(m_document);
368 visitor->trace(m_timeContainers); 368 visitor->trace(m_timeContainers);
369 visitor->trace(m_relativeLengthSVGRoots); 369 visitor->trace(m_relativeLengthSVGRoots);
370 visitor->trace(m_pendingResources); 370 visitor->trace(m_pendingResources);
371 visitor->trace(m_pendingResourcesForRemoval); 371 visitor->trace(m_pendingResourcesForRemoval);
372 #endif 372 #endif
373 } 373 }
374 374
375 } 375 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGDocumentExtensions.h ('k') | Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698