| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 if (attrName == SVGNames::xAttr || attrName == SVGNames::yAttr | 98 if (attrName == SVGNames::xAttr || attrName == SVGNames::yAttr |
| 99 || attrName == SVGNames::widthAttr || attrName == SVGNames::heightAttr | 99 || attrName == SVGNames::widthAttr || attrName == SVGNames::heightAttr |
| 100 || attrName == SVGNames::rxAttr || attrName == SVGNames::ryAttr) { | 100 || attrName == SVGNames::rxAttr || attrName == SVGNames::ryAttr) { |
| 101 SVGElement::InvalidationGuard invalidationGuard(this); | 101 SVGElement::InvalidationGuard invalidationGuard(this); |
| 102 | 102 |
| 103 invalidateSVGPresentationAttributeStyle(); | 103 invalidateSVGPresentationAttributeStyle(); |
| 104 setNeedsStyleRecalc(LocalStyleChange, | 104 setNeedsStyleRecalc(LocalStyleChange, |
| 105 StyleChangeReasonForTracing::fromAttribute(attrName)); | 105 StyleChangeReasonForTracing::fromAttribute(attrName)); |
| 106 updateRelativeLengthsInformation(); | 106 updateRelativeLengthsInformation(); |
| 107 | 107 |
| 108 LayoutSVGShape* renderer = toLayoutSVGShape(this->layoutObject()); | 108 LayoutSVGShape* layoutObject = toLayoutSVGShape(this->layoutObject()); |
| 109 if (!renderer) | 109 if (!layoutObject) |
| 110 return; | 110 return; |
| 111 | 111 |
| 112 renderer->setNeedsShapeUpdate(); | 112 layoutObject->setNeedsShapeUpdate(); |
| 113 markForLayoutAndParentResourceInvalidation(renderer); | 113 markForLayoutAndParentResourceInvalidation(layoutObject); |
| 114 | 114 |
| 115 return; | 115 return; |
| 116 } | 116 } |
| 117 | 117 |
| 118 SVGGeometryElement::svgAttributeChanged(attrName); | 118 SVGGeometryElement::svgAttributeChanged(attrName); |
| 119 } | 119 } |
| 120 | 120 |
| 121 bool SVGRectElement::selfHasRelativeLengths() const | 121 bool SVGRectElement::selfHasRelativeLengths() const |
| 122 { | 122 { |
| 123 return m_x->currentValue()->isRelative() | 123 return m_x->currentValue()->isRelative() |
| 124 || m_y->currentValue()->isRelative() | 124 || m_y->currentValue()->isRelative() |
| 125 || m_width->currentValue()->isRelative() | 125 || m_width->currentValue()->isRelative() |
| 126 || m_height->currentValue()->isRelative() | 126 || m_height->currentValue()->isRelative() |
| 127 || m_rx->currentValue()->isRelative() | 127 || m_rx->currentValue()->isRelative() |
| 128 || m_ry->currentValue()->isRelative(); | 128 || m_ry->currentValue()->isRelative(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 LayoutObject* SVGRectElement::createLayoutObject(const ComputedStyle&) | 131 LayoutObject* SVGRectElement::createLayoutObject(const ComputedStyle&) |
| 132 { | 132 { |
| 133 return new LayoutSVGRect(this); | 133 return new LayoutSVGRect(this); |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace blink | 136 } // namespace blink |
| OLD | NEW |