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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 } | 80 } |
81 | 81 |
82 RenderSVGResourceContainer* SVGDocumentExtensions::resourceById(const AtomicStri
ng& id) const | 82 RenderSVGResourceContainer* SVGDocumentExtensions::resourceById(const AtomicStri
ng& id) const |
83 { | 83 { |
84 if (id.isEmpty()) | 84 if (id.isEmpty()) |
85 return 0; | 85 return 0; |
86 | 86 |
87 return m_resources.get(id); | 87 return m_resources.get(id); |
88 } | 88 } |
89 | 89 |
90 void SVGDocumentExtensions::serviceOnAnimationFrame(Document& document, double m
onotonicAnimationStartTime) | 90 void SVGDocumentExtensions::serviceOnAnimationFrame(Document& document, blink::W
ebFrameTime frameTime) |
91 { | 91 { |
92 if (!document.svgExtensions()) | 92 if (!document.svgExtensions()) |
93 return; | 93 return; |
94 document.accessSVGExtensions().serviceAnimations(monotonicAnimationStartTime
); | 94 document.accessSVGExtensions().serviceAnimations(frameTime.displayFrameTime)
; |
95 } | 95 } |
96 | 96 |
97 void SVGDocumentExtensions::serviceAnimations(double monotonicAnimationStartTime
) | 97 void SVGDocumentExtensions::serviceAnimations(double monotonicAnimationStartTime
) |
98 { | 98 { |
99 WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> > timeContainers; | 99 WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> > timeContainers; |
100 timeContainers.appendRange(m_timeContainers.begin(), m_timeContainers.end())
; | 100 timeContainers.appendRange(m_timeContainers.begin(), m_timeContainers.end())
; |
101 WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> >::iterator end = timeCon
tainers.end(); | 101 WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> >::iterator end = timeCon
tainers.end(); |
102 for (WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> >::iterator itr = ti
meContainers.begin(); itr != end; ++itr) | 102 for (WillBeHeapVector<RefPtrWillBeMember<SVGSVGElement> >::iterator itr = ti
meContainers.begin(); itr != end; ++itr) |
103 (*itr)->timeContainer()->serviceAnimations(monotonicAnimationStartTime); | 103 (*itr)->timeContainer()->serviceAnimations(monotonicAnimationStartTime); |
104 } | 104 } |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 visitor->trace(m_document); | 404 visitor->trace(m_document); |
405 visitor->trace(m_timeContainers); | 405 visitor->trace(m_timeContainers); |
406 #if ENABLE(SVG_FONTS) | 406 #if ENABLE(SVG_FONTS) |
407 visitor->trace(m_svgFontFaceElements); | 407 visitor->trace(m_svgFontFaceElements); |
408 visitor->trace(m_pendingSVGFontFaceElementsForRemoval); | 408 visitor->trace(m_pendingSVGFontFaceElementsForRemoval); |
409 #endif | 409 #endif |
410 visitor->trace(m_relativeLengthSVGRoots); | 410 visitor->trace(m_relativeLengthSVGRoots); |
411 } | 411 } |
412 | 412 |
413 } | 413 } |
OLD | NEW |