OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> | 3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> |
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 return; | 108 return; |
109 } | 109 } |
110 | 110 |
111 if (attrName == SVGNames::startOffsetAttr) | 111 if (attrName == SVGNames::startOffsetAttr) |
112 updateRelativeLengthsInformation(); | 112 updateRelativeLengthsInformation(); |
113 | 113 |
114 if (LayoutObject* object = layoutObject()) | 114 if (LayoutObject* object = layoutObject()) |
115 markForLayoutAndParentResourceInvalidation(object); | 115 markForLayoutAndParentResourceInvalidation(object); |
116 } | 116 } |
117 | 117 |
118 LayoutObject* SVGTextPathElement::createLayoutObject(const LayoutStyle&) | 118 LayoutObject* SVGTextPathElement::createLayoutObject(const ComputedStyle&) |
119 { | 119 { |
120 return new LayoutSVGTextPath(this); | 120 return new LayoutSVGTextPath(this); |
121 } | 121 } |
122 | 122 |
123 bool SVGTextPathElement::layoutObjectIsNeeded(const LayoutStyle& style) | 123 bool SVGTextPathElement::layoutObjectIsNeeded(const ComputedStyle& style) |
124 { | 124 { |
125 if (parentNode() && (isSVGAElement(*parentNode()) || isSVGTextElement(*paren
tNode()))) | 125 if (parentNode() && (isSVGAElement(*parentNode()) || isSVGTextElement(*paren
tNode()))) |
126 return Element::layoutObjectIsNeeded(style); | 126 return Element::layoutObjectIsNeeded(style); |
127 | 127 |
128 return false; | 128 return false; |
129 } | 129 } |
130 | 130 |
131 void SVGTextPathElement::buildPendingResource() | 131 void SVGTextPathElement::buildPendingResource() |
132 { | 132 { |
133 clearResourceReferences(); | 133 clearResourceReferences(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 clearResourceReferences(); | 166 clearResourceReferences(); |
167 } | 167 } |
168 | 168 |
169 bool SVGTextPathElement::selfHasRelativeLengths() const | 169 bool SVGTextPathElement::selfHasRelativeLengths() const |
170 { | 170 { |
171 return m_startOffset->currentValue()->isRelative() | 171 return m_startOffset->currentValue()->isRelative() |
172 || SVGTextContentElement::selfHasRelativeLengths(); | 172 || SVGTextContentElement::selfHasRelativeLengths(); |
173 } | 173 } |
174 | 174 |
175 } // namespace blink | 175 } // namespace blink |
OLD | NEW |