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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 // Eventually dump shadow tree | 514 // Eventually dump shadow tree |
515 #ifdef DUMP_SHADOW_TREE | 515 #ifdef DUMP_SHADOW_TREE |
516 RefPtr<XMLSerializer> serializer = XMLSerializer::create(); | 516 RefPtr<XMLSerializer> serializer = XMLSerializer::create(); |
517 String markup = serializer->serializeToString(shadowTreeRootElement, ASSERT_
NO_EXCEPTION); | 517 String markup = serializer->serializeToString(shadowTreeRootElement, ASSERT_
NO_EXCEPTION); |
518 fprintf(stderr, "Dumping <use> shadow tree markup:\n%s\n", markup.latin1().d
ata()); | 518 fprintf(stderr, "Dumping <use> shadow tree markup:\n%s\n", markup.latin1().d
ata()); |
519 #endif | 519 #endif |
520 } | 520 } |
521 | 521 |
522 RenderObject* SVGUseElement::createRenderer(RenderStyle*) | 522 RenderObject* SVGUseElement::createRenderer(RenderStyle*) |
523 { | 523 { |
524 return new (document()->renderArena()) RenderSVGTransformableContainer(this)
; | 524 return new RenderSVGTransformableContainer(this); |
525 } | 525 } |
526 | 526 |
527 static bool isDirectReference(const Node* node) | 527 static bool isDirectReference(const Node* node) |
528 { | 528 { |
529 return node->hasTagName(SVGNames::pathTag) | 529 return node->hasTagName(SVGNames::pathTag) |
530 || node->hasTagName(SVGNames::rectTag) | 530 || node->hasTagName(SVGNames::rectTag) |
531 || node->hasTagName(SVGNames::circleTag) | 531 || node->hasTagName(SVGNames::circleTag) |
532 || node->hasTagName(SVGNames::ellipseTag) | 532 || node->hasTagName(SVGNames::ellipseTag) |
533 || node->hasTagName(SVGNames::polygonTag) | 533 || node->hasTagName(SVGNames::polygonTag) |
534 || node->hasTagName(SVGNames::polylineTag) | 534 || node->hasTagName(SVGNames::polylineTag) |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 | 983 |
984 if (m_cachedDocument) | 984 if (m_cachedDocument) |
985 m_cachedDocument->removeClient(this); | 985 m_cachedDocument->removeClient(this); |
986 | 986 |
987 m_cachedDocument = cachedDocument; | 987 m_cachedDocument = cachedDocument; |
988 if (m_cachedDocument) | 988 if (m_cachedDocument) |
989 m_cachedDocument->addClient(this); | 989 m_cachedDocument->addClient(this); |
990 } | 990 } |
991 | 991 |
992 } | 992 } |
OLD | NEW |