| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void SVGDocumentExtensions::addTimeContainer(SVGSVGElement* element) | 50 void SVGDocumentExtensions::addTimeContainer(SVGSVGElement* element) |
| 51 { | 51 { |
| 52 m_timeContainers.add(element); | 52 m_timeContainers.add(element); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void SVGDocumentExtensions::removeTimeContainer(SVGSVGElement* element) | 55 void SVGDocumentExtensions::removeTimeContainer(SVGSVGElement* element) |
| 56 { | 56 { |
| 57 m_timeContainers.remove(element); | 57 m_timeContainers.remove(element); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void SVGDocumentExtensions::addResource(const AtomicString& id, RenderSVGResourc
eContainer* resource) | 60 void SVGDocumentExtensions::addResource(const AtomicString& id, LayoutSVGResourc
eContainer* resource) |
| 61 { | 61 { |
| 62 ASSERT(resource); | 62 ASSERT(resource); |
| 63 | 63 |
| 64 if (id.isEmpty()) | 64 if (id.isEmpty()) |
| 65 return; | 65 return; |
| 66 | 66 |
| 67 // Replaces resource if already present, to handle potential id changes | 67 // Replaces resource if already present, to handle potential id changes |
| 68 m_resources.set(id, resource); | 68 m_resources.set(id, resource); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void SVGDocumentExtensions::removeResource(const AtomicString& id) | 71 void SVGDocumentExtensions::removeResource(const AtomicString& id) |
| 72 { | 72 { |
| 73 if (id.isEmpty()) | 73 if (id.isEmpty()) |
| 74 return; | 74 return; |
| 75 | 75 |
| 76 m_resources.remove(id); | 76 m_resources.remove(id); |
| 77 } | 77 } |
| 78 | 78 |
| 79 RenderSVGResourceContainer* SVGDocumentExtensions::resourceById(const AtomicStri
ng& id) const | 79 LayoutSVGResourceContainer* SVGDocumentExtensions::resourceById(const AtomicStri
ng& id) const |
| 80 { | 80 { |
| 81 if (id.isEmpty()) | 81 if (id.isEmpty()) |
| 82 return 0; | 82 return 0; |
| 83 | 83 |
| 84 return m_resources.get(id); | 84 return m_resources.get(id); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void SVGDocumentExtensions::serviceOnAnimationFrame(Document& document, double m
onotonicAnimationStartTime) | 87 void SVGDocumentExtensions::serviceOnAnimationFrame(Document& document, double m
onotonicAnimationStartTime) |
| 88 { | 88 { |
| 89 if (!document.svgExtensions()) | 89 if (!document.svgExtensions()) |
| (...skipping 276 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 |