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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // SVG specification does not say a word about <use> & cycles. My view on th
is is: just ignore it! | 406 // SVG specification does not say a word about <use> & cycles. My view on th
is is: just ignore it! |
407 // Non-appearing <use> content is easier to debug, then half-appearing conte
nt. | 407 // Non-appearing <use> content is easier to debug, then half-appearing conte
nt. |
408 if (!buildShadowTree(target, m_targetElementInstance.get(), false)) { | 408 if (!buildShadowTree(target, m_targetElementInstance.get(), false)) { |
409 clearShadowTree(); | 409 clearShadowTree(); |
410 return; | 410 return; |
411 } | 411 } |
412 | 412 |
413 if (instanceTreeIsLoading(m_targetElementInstance.get())) | 413 if (instanceTreeIsLoading(m_targetElementInstance.get())) |
414 return; | 414 return; |
415 | 415 |
416 // Assure shadow tree building was successfull | 416 // Assure shadow tree building was successful |
417 ASSERT(m_targetElementInstance); | 417 ASSERT(m_targetElementInstance); |
418 ASSERT(m_targetElementInstance->correspondingUseElement() == this); | 418 ASSERT(m_targetElementInstance->correspondingUseElement() == this); |
419 ASSERT(m_targetElementInstance->correspondingElement() == target); | 419 ASSERT(m_targetElementInstance->correspondingElement() == target); |
420 | 420 |
421 // Expand all <use> elements in the shadow tree. | 421 // Expand all <use> elements in the shadow tree. |
422 // Expand means: replace the actual <use> element by what it references. | 422 // Expand means: replace the actual <use> element by what it references. |
423 if (!expandUseElementsInShadowTree(m_targetElementInstance.get())) { | 423 if (!expandUseElementsInShadowTree(m_targetElementInstance.get())) { |
424 clearShadowTree(); | 424 clearShadowTree(); |
425 return; | 425 return; |
426 } | 426 } |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 | 817 |
818 if (m_resource) | 818 if (m_resource) |
819 m_resource->removeClient(this); | 819 m_resource->removeClient(this); |
820 | 820 |
821 m_resource = resource; | 821 m_resource = resource; |
822 if (m_resource) | 822 if (m_resource) |
823 m_resource->addClient(this); | 823 m_resource->addClient(this); |
824 } | 824 } |
825 | 825 |
826 } | 826 } |
OLD | NEW |