OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2010 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 inline SVGTSpanElement::SVGTSpanElement(Document& document) | 30 inline SVGTSpanElement::SVGTSpanElement(Document& document) |
31 : SVGTextPositioningElement(SVGNames::tspanTag, document) | 31 : SVGTextPositioningElement(SVGNames::tspanTag, document) |
32 { | 32 { |
33 } | 33 } |
34 | 34 |
35 DEFINE_NODE_FACTORY(SVGTSpanElement) | 35 DEFINE_NODE_FACTORY(SVGTSpanElement) |
36 | 36 |
37 LayoutObject* SVGTSpanElement::createLayoutObject(const LayoutStyle&) | 37 LayoutObject* SVGTSpanElement::createLayoutObject(const ComputedStyle&) |
38 { | 38 { |
39 return new LayoutSVGTSpan(this); | 39 return new LayoutSVGTSpan(this); |
40 } | 40 } |
41 | 41 |
42 bool SVGTSpanElement::layoutObjectIsNeeded(const LayoutStyle& style) | 42 bool SVGTSpanElement::layoutObjectIsNeeded(const ComputedStyle& style) |
43 { | 43 { |
44 if (parentNode() | 44 if (parentNode() |
45 && (isSVGAElement(*parentNode()) | 45 && (isSVGAElement(*parentNode()) |
46 || isSVGTextElement(*parentNode()) | 46 || isSVGTextElement(*parentNode()) |
47 || isSVGTextPathElement(*parentNode()) | 47 || isSVGTextPathElement(*parentNode()) |
48 || isSVGTSpanElement(*parentNode()))) | 48 || isSVGTSpanElement(*parentNode()))) |
49 return Element::layoutObjectIsNeeded(style); | 49 return Element::layoutObjectIsNeeded(style); |
50 | 50 |
51 return false; | 51 return false; |
52 } | 52 } |
53 | 53 |
54 } | 54 } |
OLD | NEW |