OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |