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

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

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 4 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
« no previous file with comments | « Source/core/svg/SVGRectElement.cpp ('k') | Source/core/svg/SVGStopElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 // they should instead depend on the RenderView. 472 // they should instead depend on the RenderView.
473 // https://bugs.webkit.org/show_bug.cgi?id=103493 473 // https://bugs.webkit.org/show_bug.cgi?id=103493
474 if (document()->documentElement() == this) 474 if (document()->documentElement() == this)
475 return true; 475 return true;
476 return Element::rendererIsNeeded(context); 476 return Element::rendererIsNeeded(context);
477 } 477 }
478 478
479 RenderObject* SVGSVGElement::createRenderer(RenderStyle*) 479 RenderObject* SVGSVGElement::createRenderer(RenderStyle*)
480 { 480 {
481 if (isOutermostSVGSVGElement()) 481 if (isOutermostSVGSVGElement())
482 return new (document()->renderArena()) RenderSVGRoot(this); 482 return new RenderSVGRoot(this);
483 483
484 return new (document()->renderArena()) RenderSVGViewportContainer(this); 484 return new RenderSVGViewportContainer(this);
485 } 485 }
486 486
487 Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* ro otParent) 487 Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* ro otParent)
488 { 488 {
489 if (rootParent->inDocument()) { 489 if (rootParent->inDocument()) {
490 document()->accessSVGExtensions()->addTimeContainer(this); 490 document()->accessSVGExtensions()->addTimeContainer(this);
491 491
492 // Animations are started at the end of document parsing and after firin g the load event, 492 // Animations are started at the end of document parsing and after firin g the load event,
493 // but if we miss that train (deferred programmatic element insertion fo r example) we need 493 // but if we miss that train (deferred programmatic element insertion fo r example) we need
494 // to initialize the time container here. 494 // to initialize the time container here.
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 continue; 768 continue;
769 769
770 Element* element = toElement(node); 770 Element* element = toElement(node);
771 if (element->getIdAttribute() == id) 771 if (element->getIdAttribute() == id)
772 return element; 772 return element;
773 } 773 }
774 return 0; 774 return 0;
775 } 775 }
776 776
777 } 777 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRectElement.cpp ('k') | Source/core/svg/SVGStopElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698