| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 { | 76 { |
| 77 // Always build a user agent #shadow-root for SVGUseElement. | 77 // Always build a user agent #shadow-root for SVGUseElement. |
| 78 RefPtr<SVGUseElement> use = adoptRef(new SVGUseElement(document, wasInserted
ByParser)); | 78 RefPtr<SVGUseElement> use = adoptRef(new SVGUseElement(document, wasInserted
ByParser)); |
| 79 use->ensureUserAgentShadowRoot(); | 79 use->ensureUserAgentShadowRoot(); |
| 80 return use.release(); | 80 return use.release(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 SVGUseElement::~SVGUseElement() | 83 SVGUseElement::~SVGUseElement() |
| 84 { | 84 { |
| 85 setDocumentResource(0); | 85 setDocumentResource(0); |
| 86 | 86 #if !ENABLE(OILPAN) |
| 87 clearResourceReferences(); | 87 clearResourceReferences(); |
| 88 #endif |
| 88 } | 89 } |
| 89 | 90 |
| 90 SVGElementInstance* SVGUseElement::instanceRoot() | 91 SVGElementInstance* SVGUseElement::instanceRoot() |
| 91 { | 92 { |
| 92 // If there is no element instance tree, force immediate SVGElementInstance
tree | 93 // If there is no element instance tree, force immediate SVGElementInstance
tree |
| 93 // creation by asking the document to invoke our recalcStyle function - as w
e can't | 94 // creation by asking the document to invoke our recalcStyle function - as w
e can't |
| 94 // wait for the lazy creation to happen if e.g. JS wants to access the insta
nceRoot | 95 // wait for the lazy creation to happen if e.g. JS wants to access the insta
nceRoot |
| 95 // object right after creating the element on-the-fly | 96 // object right after creating the element on-the-fly |
| 96 if (!m_targetElementInstance) | 97 if (!m_targetElementInstance) |
| 97 document().updateRenderTreeIfNeeded(); | 98 document().updateRenderTreeIfNeeded(); |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 | 965 |
| 965 if (m_resource) | 966 if (m_resource) |
| 966 m_resource->removeClient(this); | 967 m_resource->removeClient(this); |
| 967 | 968 |
| 968 m_resource = resource; | 969 m_resource = resource; |
| 969 if (m_resource) | 970 if (m_resource) |
| 970 m_resource->addClient(this); | 971 m_resource->addClient(this); |
| 971 } | 972 } |
| 972 | 973 |
| 973 } | 974 } |
| OLD | NEW |