| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 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 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 renderer->invalidateCacheAndMarkForLayout(); | 122 renderer->invalidateCacheAndMarkForLayout(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void SVGMarkerElement::childrenChanged(const ChildrenChange& change) | 125 void SVGMarkerElement::childrenChanged(const ChildrenChange& change) |
| 126 { | 126 { |
| 127 SVGElement::childrenChanged(change); | 127 SVGElement::childrenChanged(change); |
| 128 | 128 |
| 129 if (change.byParser) | 129 if (change.byParser) |
| 130 return; | 130 return; |
| 131 | 131 |
| 132 if (RenderObject* object = renderer()) | 132 if (LayoutObject* object = renderer()) |
| 133 object->setNeedsLayoutAndFullPaintInvalidation(); | 133 object->setNeedsLayoutAndFullPaintInvalidation(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void SVGMarkerElement::setOrientToAuto() | 136 void SVGMarkerElement::setOrientToAuto() |
| 137 { | 137 { |
| 138 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto); | 138 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto); |
| 139 invalidateSVGAttributes(); | 139 invalidateSVGAttributes(); |
| 140 svgAttributeChanged(SVGNames::orientAttr); | 140 svgAttributeChanged(SVGNames::orientAttr); |
| 141 } | 141 } |
| 142 | 142 |
| 143 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff>
angle) | 143 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff>
angle) |
| 144 { | 144 { |
| 145 ASSERT(angle); | 145 ASSERT(angle); |
| 146 RefPtrWillBeRawPtr<SVGAngle> target = angle->target(); | 146 RefPtrWillBeRawPtr<SVGAngle> target = angle->target(); |
| 147 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), targe
t->valueInSpecifiedUnits()); | 147 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), targe
t->valueInSpecifiedUnits()); |
| 148 invalidateSVGAttributes(); | 148 invalidateSVGAttributes(); |
| 149 svgAttributeChanged(SVGNames::orientAttr); | 149 svgAttributeChanged(SVGNames::orientAttr); |
| 150 } | 150 } |
| 151 | 151 |
| 152 RenderObject* SVGMarkerElement::createRenderer(const RenderStyle&) | 152 LayoutObject* SVGMarkerElement::createRenderer(const RenderStyle&) |
| 153 { | 153 { |
| 154 return new RenderSVGResourceMarker(this); | 154 return new RenderSVGResourceMarker(this); |
| 155 } | 155 } |
| 156 | 156 |
| 157 bool SVGMarkerElement::selfHasRelativeLengths() const | 157 bool SVGMarkerElement::selfHasRelativeLengths() const |
| 158 { | 158 { |
| 159 return m_refX->currentValue()->isRelative() | 159 return m_refX->currentValue()->isRelative() |
| 160 || m_refY->currentValue()->isRelative() | 160 || m_refY->currentValue()->isRelative() |
| 161 || m_markerWidth->currentValue()->isRelative() | 161 || m_markerWidth->currentValue()->isRelative() |
| 162 || m_markerHeight->currentValue()->isRelative(); | 162 || m_markerHeight->currentValue()->isRelative(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 } // namespace blink | 165 } // namespace blink |
| OLD | NEW |