OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |