OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
6 * Copyright (C) 2012 University of Szeged | 6 * Copyright (C) 2012 University of Szeged |
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> | 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "core/css/resolver/StyleResolver.h" | 32 #include "core/css/resolver/StyleResolver.h" |
33 #include "core/dom/Attribute.h" | 33 #include "core/dom/Attribute.h" |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/dom/Event.h" | 35 #include "core/dom/Event.h" |
36 #include "core/dom/EventListener.h" | 36 #include "core/dom/EventListener.h" |
37 #include "core/dom/NodeRenderStyle.h" | 37 #include "core/dom/NodeRenderStyle.h" |
38 #include "core/dom/NodeTraversal.h" | 38 #include "core/dom/NodeTraversal.h" |
39 #include "core/dom/RegisteredEventListener.h" | 39 #include "core/dom/RegisteredEventListener.h" |
40 #include "core/dom/shadow/ElementShadow.h" | 40 #include "core/dom/shadow/ElementShadow.h" |
41 #include "core/dom/shadow/ShadowRoot.h" | 41 #include "core/dom/shadow/ShadowRoot.h" |
| 42 #include "core/loader/cache/CachedDocument.h" |
42 #include "core/loader/cache/CachedResourceLoader.h" | 43 #include "core/loader/cache/CachedResourceLoader.h" |
43 #include "core/loader/cache/CachedResourceRequest.h" | 44 #include "core/loader/cache/CachedResourceRequest.h" |
44 #include "core/loader/cache/CachedSVGDocument.h" | |
45 #include "core/rendering/svg/RenderSVGResource.h" | 45 #include "core/rendering/svg/RenderSVGResource.h" |
46 #include "core/rendering/svg/RenderSVGTransformableContainer.h" | 46 #include "core/rendering/svg/RenderSVGTransformableContainer.h" |
47 #include "core/svg/SVGElementInstance.h" | 47 #include "core/svg/SVGElementInstance.h" |
48 #include "core/svg/SVGElementInstanceList.h" | 48 #include "core/svg/SVGElementInstanceList.h" |
49 #include "core/svg/SVGElementRareData.h" | 49 #include "core/svg/SVGElementRareData.h" |
50 #include "core/svg/SVGGElement.h" | 50 #include "core/svg/SVGGElement.h" |
51 #include "core/svg/SVGLengthContext.h" | 51 #include "core/svg/SVGLengthContext.h" |
52 #include "core/svg/SVGSVGElement.h" | 52 #include "core/svg/SVGSVGElement.h" |
53 #include "core/svg/SVGSymbolElement.h" | 53 #include "core/svg/SVGSymbolElement.h" |
54 #include "core/svg/animation/SVGSMILElement.h" | 54 #include "core/svg/animation/SVGSMILElement.h" |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 void SVGUseElement::finishParsingChildren() | 986 void SVGUseElement::finishParsingChildren() |
987 { | 987 { |
988 SVGStyledTransformableElement::finishParsingChildren(); | 988 SVGStyledTransformableElement::finishParsingChildren(); |
989 SVGExternalResourcesRequired::finishParsingChildren(); | 989 SVGExternalResourcesRequired::finishParsingChildren(); |
990 if (m_wasInsertedByParser) { | 990 if (m_wasInsertedByParser) { |
991 buildPendingResource(); | 991 buildPendingResource(); |
992 m_wasInsertedByParser = false; | 992 m_wasInsertedByParser = false; |
993 } | 993 } |
994 } | 994 } |
995 | 995 |
996 void SVGUseElement::setCachedDocument(CachedResourceHandle<CachedSVGDocument> ca
chedDocument) | 996 void SVGUseElement::setCachedDocument(CachedResourceHandle<CachedDocument> cache
dDocument) |
997 { | 997 { |
998 if (m_cachedDocument == cachedDocument) | 998 if (m_cachedDocument == cachedDocument) |
999 return; | 999 return; |
1000 | 1000 |
1001 if (m_cachedDocument) | 1001 if (m_cachedDocument) |
1002 m_cachedDocument->removeClient(this); | 1002 m_cachedDocument->removeClient(this); |
1003 | 1003 |
1004 m_cachedDocument = cachedDocument; | 1004 m_cachedDocument = cachedDocument; |
1005 if (m_cachedDocument) | 1005 if (m_cachedDocument) |
1006 m_cachedDocument->addClient(this); | 1006 m_cachedDocument->addClient(this); |
1007 } | 1007 } |
1008 | 1008 |
1009 } | 1009 } |
OLD | NEW |