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

Side by Side Diff: Source/core/rendering/svg/RenderSVGInline.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. 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 20 matching lines...) Expand all
31 namespace WebCore { 31 namespace WebCore {
32 32
33 RenderSVGInline::RenderSVGInline(Element* element) 33 RenderSVGInline::RenderSVGInline(Element* element)
34 : RenderInline(element) 34 : RenderInline(element)
35 { 35 {
36 setAlwaysCreateLineBoxes(); 36 setAlwaysCreateLineBoxes();
37 } 37 }
38 38
39 InlineFlowBox* RenderSVGInline::createInlineFlowBox() 39 InlineFlowBox* RenderSVGInline::createInlineFlowBox()
40 { 40 {
41 InlineFlowBox* box = new (renderArena()) SVGInlineFlowBox(this); 41 InlineFlowBox* box = new SVGInlineFlowBox(this);
42 box->setHasVirtualLogicalHeight(); 42 box->setHasVirtualLogicalHeight();
43 return box; 43 return box;
44 } 44 }
45 45
46 FloatRect RenderSVGInline::objectBoundingBox() const 46 FloatRect RenderSVGInline::objectBoundingBox() const
47 { 47 {
48 if (const RenderObject* object = RenderSVGText::locateRenderSVGTextAncestor( this)) 48 if (const RenderObject* object = RenderSVGText::locateRenderSVGTextAncestor( this))
49 return object->objectBoundingBox(); 49 return object->objectBoundingBox();
50 50
51 return FloatRect(); 51 return FloatRect();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 RenderInline::removeChild(child); 135 RenderInline::removeChild(child);
136 return; 136 return;
137 } 137 }
138 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes; 138 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes;
139 textRenderer->subtreeChildWillBeRemoved(child, affectedAttributes); 139 textRenderer->subtreeChildWillBeRemoved(child, affectedAttributes);
140 RenderInline::removeChild(child); 140 RenderInline::removeChild(child);
141 textRenderer->subtreeChildWasRemoved(affectedAttributes); 141 textRenderer->subtreeChildWasRemoved(affectedAttributes);
142 } 142 }
143 143
144 } 144 }
OLDNEW
« no previous file with comments | « Source/core/rendering/style/ContentData.cpp ('k') | Source/core/rendering/svg/RenderSVGInlineText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698