| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 { | 86 { |
| 87 if (attrName == SVGNames::cxAttr || attrName == SVGNames::cyAttr | 87 if (attrName == SVGNames::cxAttr || attrName == SVGNames::cyAttr |
| 88 || attrName == SVGNames::rxAttr || attrName == SVGNames::ryAttr) { | 88 || attrName == SVGNames::rxAttr || attrName == SVGNames::ryAttr) { |
| 89 SVGElement::InvalidationGuard invalidationGuard(this); | 89 SVGElement::InvalidationGuard invalidationGuard(this); |
| 90 | 90 |
| 91 invalidateSVGPresentationAttributeStyle(); | 91 invalidateSVGPresentationAttributeStyle(); |
| 92 setNeedsStyleRecalc(LocalStyleChange, | 92 setNeedsStyleRecalc(LocalStyleChange, |
| 93 StyleChangeReasonForTracing::fromAttribute(attrName)); | 93 StyleChangeReasonForTracing::fromAttribute(attrName)); |
| 94 updateRelativeLengthsInformation(); | 94 updateRelativeLengthsInformation(); |
| 95 | 95 |
| 96 LayoutSVGShape* renderer = toLayoutSVGShape(this->layoutObject()); | 96 LayoutSVGShape* layoutObject = toLayoutSVGShape(this->layoutObject()); |
| 97 if (!renderer) | 97 if (!layoutObject) |
| 98 return; | 98 return; |
| 99 | 99 |
| 100 renderer->setNeedsShapeUpdate(); | 100 layoutObject->setNeedsShapeUpdate(); |
| 101 markForLayoutAndParentResourceInvalidation(renderer); | 101 markForLayoutAndParentResourceInvalidation(layoutObject); |
| 102 return; | 102 return; |
| 103 } | 103 } |
| 104 | 104 |
| 105 SVGGeometryElement::svgAttributeChanged(attrName); | 105 SVGGeometryElement::svgAttributeChanged(attrName); |
| 106 } | 106 } |
| 107 | 107 |
| 108 bool SVGEllipseElement::selfHasRelativeLengths() const | 108 bool SVGEllipseElement::selfHasRelativeLengths() const |
| 109 { | 109 { |
| 110 return m_cx->currentValue()->isRelative() | 110 return m_cx->currentValue()->isRelative() |
| 111 || m_cy->currentValue()->isRelative() | 111 || m_cy->currentValue()->isRelative() |
| 112 || m_rx->currentValue()->isRelative() | 112 || m_rx->currentValue()->isRelative() |
| 113 || m_ry->currentValue()->isRelative(); | 113 || m_ry->currentValue()->isRelative(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 LayoutObject* SVGEllipseElement::createLayoutObject(const ComputedStyle&) | 116 LayoutObject* SVGEllipseElement::createLayoutObject(const ComputedStyle&) |
| 117 { | 117 { |
| 118 return new LayoutSVGEllipse(this); | 118 return new LayoutSVGEllipse(this); |
| 119 } | 119 } |
| 120 | 120 |
| 121 } // namespace blink | 121 } // namespace blink |
| OLD | NEW |