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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff>
angle) | 137 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff>
angle) |
138 { | 138 { |
139 ASSERT(angle); | 139 ASSERT(angle); |
140 RefPtrWillBeRawPtr<SVGAngle> target = angle->target(); | 140 RefPtrWillBeRawPtr<SVGAngle> target = angle->target(); |
141 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), targe
t->valueInSpecifiedUnits()); | 141 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), targe
t->valueInSpecifiedUnits()); |
142 invalidateSVGAttributes(); | 142 invalidateSVGAttributes(); |
143 svgAttributeChanged(SVGNames::orientAttr); | 143 svgAttributeChanged(SVGNames::orientAttr); |
144 } | 144 } |
145 | 145 |
146 LayoutObject* SVGMarkerElement::createLayoutObject(const LayoutStyle&) | 146 LayoutObject* SVGMarkerElement::createLayoutObject(const ComputedStyle&) |
147 { | 147 { |
148 return new LayoutSVGResourceMarker(this); | 148 return new LayoutSVGResourceMarker(this); |
149 } | 149 } |
150 | 150 |
151 bool SVGMarkerElement::selfHasRelativeLengths() const | 151 bool SVGMarkerElement::selfHasRelativeLengths() const |
152 { | 152 { |
153 return m_refX->currentValue()->isRelative() | 153 return m_refX->currentValue()->isRelative() |
154 || m_refY->currentValue()->isRelative() | 154 || m_refY->currentValue()->isRelative() |
155 || m_markerWidth->currentValue()->isRelative() | 155 || m_markerWidth->currentValue()->isRelative() |
156 || m_markerHeight->currentValue()->isRelative(); | 156 || m_markerHeight->currentValue()->isRelative(); |
157 } | 157 } |
158 | 158 |
159 } // namespace blink | 159 } // namespace blink |
OLD | NEW |