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

Side by Side Diff: Source/core/svg/SVGSVGElement.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 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 { 473 {
474 // FIXME: We should respect display: none on the documentElement svg element 474 // FIXME: We should respect display: none on the documentElement svg element
475 // but many things in FrameView and SVGImage depend on the RenderSVGRoot whe n 475 // but many things in FrameView and SVGImage depend on the RenderSVGRoot whe n
476 // they should instead depend on the RenderView. 476 // they should instead depend on the RenderView.
477 // https://bugs.webkit.org/show_bug.cgi?id=103493 477 // https://bugs.webkit.org/show_bug.cgi?id=103493
478 if (document()->documentElement() == this) 478 if (document()->documentElement() == this)
479 return true; 479 return true;
480 return StyledElement::rendererIsNeeded(context); 480 return StyledElement::rendererIsNeeded(context);
481 } 481 }
482 482
483 RenderObject* SVGSVGElement::createRenderer(RenderArena* arena, RenderStyle*) 483 RenderObject* SVGSVGElement::createRenderer(RenderStyle*)
484 { 484 {
485 if (isOutermostSVGSVGElement()) 485 if (isOutermostSVGSVGElement())
486 return new (arena) RenderSVGRoot(this); 486 return new RenderSVGRoot(this);
487 487
488 return new (arena) RenderSVGViewportContainer(this); 488 return new RenderSVGViewportContainer(this);
489 } 489 }
490 490
491 Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* ro otParent) 491 Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* ro otParent)
492 { 492 {
493 if (rootParent->inDocument()) { 493 if (rootParent->inDocument()) {
494 document()->accessSVGExtensions()->addTimeContainer(this); 494 document()->accessSVGExtensions()->addTimeContainer(this);
495 495
496 // Animations are started at the end of document parsing and after firin g the load event, 496 // Animations are started at the end of document parsing and after firin g the load event,
497 // but if we miss that train (deferred programmatic element insertion fo r example) we need 497 // but if we miss that train (deferred programmatic element insertion fo r example) we need
498 // to initialize the time container here. 498 // to initialize the time container here.
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 continue; 772 continue;
773 773
774 Element* element = toElement(node); 774 Element* element = toElement(node);
775 if (element->getIdAttribute() == id) 775 if (element->getIdAttribute() == id)
776 return element; 776 return element;
777 } 777 }
778 return 0; 778 return 0;
779 } 779 }
780 780
781 } 781 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698