Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: Source/core/svg/SVGUseElement.cpp

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 #endif 518 #endif
519 519
520 // Eventually dump shadow tree 520 // Eventually dump shadow tree
521 #ifdef DUMP_SHADOW_TREE 521 #ifdef DUMP_SHADOW_TREE
522 RefPtr<XMLSerializer> serializer = XMLSerializer::create(); 522 RefPtr<XMLSerializer> serializer = XMLSerializer::create();
523 String markup = serializer->serializeToString(shadowTreeRootElement, ASSERT_ NO_EXCEPTION); 523 String markup = serializer->serializeToString(shadowTreeRootElement, ASSERT_ NO_EXCEPTION);
524 fprintf(stderr, "Dumping <use> shadow tree markup:\n%s\n", markup.latin1().d ata()); 524 fprintf(stderr, "Dumping <use> shadow tree markup:\n%s\n", markup.latin1().d ata());
525 #endif 525 #endif
526 } 526 }
527 527
528 RenderObject* SVGUseElement::createRenderer(RenderArena* arena, RenderStyle*) 528 RenderObject* SVGUseElement::createRenderer(RenderStyle*)
529 { 529 {
530 return new (arena) RenderSVGTransformableContainer(this); 530 return new RenderSVGTransformableContainer(this);
531 } 531 }
532 532
533 static bool isDirectReference(const Node* node) 533 static bool isDirectReference(const Node* node)
534 { 534 {
535 return node->hasTagName(SVGNames::pathTag) 535 return node->hasTagName(SVGNames::pathTag)
536 || node->hasTagName(SVGNames::rectTag) 536 || node->hasTagName(SVGNames::rectTag)
537 || node->hasTagName(SVGNames::circleTag) 537 || node->hasTagName(SVGNames::circleTag)
538 || node->hasTagName(SVGNames::ellipseTag) 538 || node->hasTagName(SVGNames::ellipseTag)
539 || node->hasTagName(SVGNames::polygonTag) 539 || node->hasTagName(SVGNames::polygonTag)
540 || node->hasTagName(SVGNames::polylineTag) 540 || node->hasTagName(SVGNames::polylineTag)
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 989
990 if (m_cachedDocument) 990 if (m_cachedDocument)
991 m_cachedDocument->removeClient(this); 991 m_cachedDocument->removeClient(this);
992 992
993 m_cachedDocument = cachedDocument; 993 m_cachedDocument = cachedDocument;
994 if (m_cachedDocument) 994 if (m_cachedDocument)
995 m_cachedDocument->addClient(this); 995 m_cachedDocument->addClient(this);
996 } 996 }
997 997
998 } 998 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698