| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 } | 149 } |
| 150 | 150 |
| 151 void SVGDocumentExtensions::reportError(const String& message) | 151 void SVGDocumentExtensions::reportError(const String& message) |
| 152 { | 152 { |
| 153 m_document->addConsoleMessage(ConsoleMessage::create(RenderingMessageSource,
ErrorMessageLevel, "Error: " + message)); | 153 m_document->addConsoleMessage(ConsoleMessage::create(RenderingMessageSource,
ErrorMessageLevel, "Error: " + message)); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void SVGDocumentExtensions::addPendingResource(const AtomicString& id, Element*
element) | 156 void SVGDocumentExtensions::addPendingResource(const AtomicString& id, Element*
element) |
| 157 { | 157 { |
| 158 ASSERT(element); | 158 ASSERT(element); |
| 159 ASSERT(element->inDocument()); | 159 ASSERT(element->inShadowIncludingDocument()); |
| 160 | 160 |
| 161 if (id.isEmpty()) | 161 if (id.isEmpty()) |
| 162 return; | 162 return; |
| 163 | 163 |
| 164 HeapHashMap<AtomicString, Member<SVGPendingElements>>::AddResult result = m_
pendingResources.add(id, nullptr); | 164 HeapHashMap<AtomicString, Member<SVGPendingElements>>::AddResult result = m_
pendingResources.add(id, nullptr); |
| 165 if (result.isNewEntry) | 165 if (result.isNewEntry) |
| 166 result.storedValue->value = new SVGPendingElements; | 166 result.storedValue->value = new SVGPendingElements; |
| 167 result.storedValue->value->add(element); | 167 result.storedValue->value->add(element); |
| 168 | 168 |
| 169 element->setHasPendingResources(); | 169 element->setHasPendingResources(); |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 { | 360 { |
| 361 visitor->trace(m_document); | 361 visitor->trace(m_document); |
| 362 visitor->trace(m_timeContainers); | 362 visitor->trace(m_timeContainers); |
| 363 visitor->trace(m_webAnimationsPendingSVGElements); | 363 visitor->trace(m_webAnimationsPendingSVGElements); |
| 364 visitor->trace(m_relativeLengthSVGRoots); | 364 visitor->trace(m_relativeLengthSVGRoots); |
| 365 visitor->trace(m_pendingResources); | 365 visitor->trace(m_pendingResources); |
| 366 visitor->trace(m_pendingResourcesForRemoval); | 366 visitor->trace(m_pendingResourcesForRemoval); |
| 367 } | 367 } |
| 368 | 368 |
| 369 } // namespace blink | 369 } // namespace blink |
| OLD | NEW |