| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 SVGElement::InvalidationGuard invalidationGuard(this); | 82 SVGElement::InvalidationGuard invalidationGuard(this); |
| 83 | 83 |
| 84 bool updateRelativeLengths = attrName == SVGNames::xAttr | 84 bool updateRelativeLengths = attrName == SVGNames::xAttr |
| 85 || attrName == SVGNames::yAttr | 85 || attrName == SVGNames::yAttr |
| 86 || attrName == SVGNames::dxAttr | 86 || attrName == SVGNames::dxAttr |
| 87 || attrName == SVGNames::dyAttr; | 87 || attrName == SVGNames::dyAttr; |
| 88 | 88 |
| 89 if (updateRelativeLengths) | 89 if (updateRelativeLengths) |
| 90 updateRelativeLengthsInformation(); | 90 updateRelativeLengthsInformation(); |
| 91 | 91 |
| 92 RenderObject* renderer = this->renderer(); | 92 LayoutObject* renderer = this->renderer(); |
| 93 if (!renderer) | 93 if (!renderer) |
| 94 return; | 94 return; |
| 95 | 95 |
| 96 ASSERT(updateRelativeLengths || attrName == SVGNames::rotateAttr); | 96 ASSERT(updateRelativeLengths || attrName == SVGNames::rotateAttr); |
| 97 | 97 |
| 98 if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor
(renderer)) | 98 if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor
(renderer)) |
| 99 textRenderer->setNeedsPositioningValuesUpdate(); | 99 textRenderer->setNeedsPositioningValuesUpdate(); |
| 100 markForLayoutAndParentResourceInvalidation(renderer); | 100 markForLayoutAndParentResourceInvalidation(renderer); |
| 101 } | 101 } |
| 102 | 102 |
| 103 SVGTextPositioningElement* SVGTextPositioningElement::elementFromRenderer(Render
Object& renderer) | 103 SVGTextPositioningElement* SVGTextPositioningElement::elementFromRenderer(Layout
Object& renderer) |
| 104 { | 104 { |
| 105 if (!renderer.isSVGText() && !renderer.isSVGInline()) | 105 if (!renderer.isSVGText() && !renderer.isSVGInline()) |
| 106 return 0; | 106 return 0; |
| 107 | 107 |
| 108 Node* node = renderer.node(); | 108 Node* node = renderer.node(); |
| 109 ASSERT(node); | 109 ASSERT(node); |
| 110 ASSERT(node->isSVGElement()); | 110 ASSERT(node->isSVGElement()); |
| 111 | 111 |
| 112 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node
) : 0; | 112 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node
) : 0; |
| 113 } | 113 } |
| 114 | 114 |
| 115 } | 115 } |
| OLD | NEW |