| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 (*itr)->pauseAnimations(); | 122 (*itr)->pauseAnimations(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements() | 125 void SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements() |
| 126 { | 126 { |
| 127 WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> > timeContainers; | 127 WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> > timeContainers; |
| 128 timeContainers.appendRange(m_timeContainers.begin(), m_timeContainers.end())
; | 128 timeContainers.appendRange(m_timeContainers.begin(), m_timeContainers.end())
; |
| 129 | 129 |
| 130 WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> >::iterator end = timeCon
tainers.end(); | 130 WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> >::iterator end = timeCon
tainers.end(); |
| 131 for (WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> >::iterator it = tim
eContainers.begin(); it != end; ++it) { | 131 for (WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> >::iterator it = tim
eContainers.begin(); it != end; ++it) { |
| 132 SVGSVGElement* outerSVG = (*it).get(); | 132 SVGSVGElement* outerSVG = it->get(); |
| 133 if (!outerSVG->isOutermostSVGSVGElement()) | 133 if (!outerSVG->isOutermostSVGSVGElement()) |
| 134 continue; | 134 continue; |
| 135 | 135 |
| 136 // don't dispatch the load event document is not wellformed (for XML/sta
ndalone svg) | 136 // don't dispatch the load event document is not wellformed (for XML/sta
ndalone svg) |
| 137 if (outerSVG->document().wellFormed() || !outerSVG->document().isSVGDocu
ment()) | 137 if (outerSVG->document().wellFormed() || !outerSVG->document().isSVGDocu
ment()) |
| 138 outerSVG->sendSVGLoadEventIfPossible(); | 138 outerSVG->sendSVGLoadEventIfPossible(); |
| 139 } | 139 } |
| 140 } | 140 } |
| 141 | 141 |
| 142 static void reportMessage(Document* document, MessageLevel level, const String&
message) | 142 static void reportMessage(Document* document, MessageLevel level, const String&
message) |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 } | 476 } |
| 477 | 477 |
| 478 void SVGDocumentExtensions::trace(Visitor* visitor) | 478 void SVGDocumentExtensions::trace(Visitor* visitor) |
| 479 { | 479 { |
| 480 visitor->trace(m_timeContainers); | 480 visitor->trace(m_timeContainers); |
| 481 visitor->trace(m_svgFontFaceElements); | 481 visitor->trace(m_svgFontFaceElements); |
| 482 visitor->trace(m_pendingSVGFontFaceElementsForRemoval); | 482 visitor->trace(m_pendingSVGFontFaceElementsForRemoval); |
| 483 } | 483 } |
| 484 | 484 |
| 485 } | 485 } |
| OLD | NEW |