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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 return true; | 393 return true; |
394 } | 394 } |
395 | 395 |
396 return false; | 396 return false; |
397 } | 397 } |
398 | 398 |
399 void SVGUseElement::clearResourceReferences() | 399 void SVGUseElement::clearResourceReferences() |
400 { | 400 { |
401 // FIXME: We should try to optimize this, to at least allow partial reclones
. | 401 // FIXME: We should try to optimize this, to at least allow partial reclones
. |
402 if (ShadowRoot* shadowTreeRootElement = shadow()->oldestShadowRoot()) | 402 if (ShadowRoot* shadowTreeRootElement = shadow()->oldestShadowRoot()) |
403 shadowTreeRootElement->removeAllChildren(); | 403 shadowTreeRootElement->removeChildren(); |
404 | 404 |
405 if (m_targetElementInstance) { | 405 if (m_targetElementInstance) { |
406 m_targetElementInstance->detach(); | 406 m_targetElementInstance->detach(); |
407 m_targetElementInstance = 0; | 407 m_targetElementInstance = 0; |
408 } | 408 } |
409 | 409 |
410 m_needsShadowTreeRecreation = false; | 410 m_needsShadowTreeRecreation = false; |
411 | 411 |
412 ASSERT(document()); | 412 ASSERT(document()); |
413 document()->accessSVGExtensions()->removeAllTargetReferencesForElement(this)
; | 413 document()->accessSVGExtensions()->removeAllTargetReferencesForElement(this)
; |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 m_cachedDocument->removeClient(this); | 997 m_cachedDocument->removeClient(this); |
998 | 998 |
999 m_cachedDocument = cachedDocument; | 999 m_cachedDocument = cachedDocument; |
1000 if (m_cachedDocument) | 1000 if (m_cachedDocument) |
1001 m_cachedDocument->addClient(this); | 1001 m_cachedDocument->addClient(this); |
1002 } | 1002 } |
1003 | 1003 |
1004 } | 1004 } |
1005 | 1005 |
1006 #endif // ENABLE(SVG) | 1006 #endif // ENABLE(SVG) |
OLD | NEW |