| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 SVGEnumeration<SVGMarkerOrientType>::trace(visitor); | 57 SVGEnumeration<SVGMarkerOrientType>::trace(visitor); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void SVGMarkerOrientEnumeration::notifyChange() { | 60 void SVGMarkerOrientEnumeration::notifyChange() { |
| 61 ASSERT(m_angle); | 61 ASSERT(m_angle); |
| 62 m_angle->orientTypeChanged(); | 62 m_angle->orientTypeChanged(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void SVGMarkerOrientEnumeration::add(SVGPropertyBase*, SVGElement*) { | 65 void SVGMarkerOrientEnumeration::add(SVGPropertyBase*, SVGElement*) { |
| 66 // SVGMarkerOrientEnumeration is only animated via SVGAngle | 66 // SVGMarkerOrientEnumeration is only animated via SVGAngle |
| 67 ASSERT_NOT_REACHED(); | 67 NOTREACHED(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void SVGMarkerOrientEnumeration::calculateAnimatedValue( | 70 void SVGMarkerOrientEnumeration::calculateAnimatedValue( |
| 71 SVGAnimationElement*, | 71 SVGAnimationElement*, |
| 72 float percentage, | 72 float percentage, |
| 73 unsigned repeatCount, | 73 unsigned repeatCount, |
| 74 SVGPropertyBase* from, | 74 SVGPropertyBase* from, |
| 75 SVGPropertyBase* to, | 75 SVGPropertyBase* to, |
| 76 SVGPropertyBase* toAtEndOfDurationValue, | 76 SVGPropertyBase* toAtEndOfDurationValue, |
| 77 SVGElement* contextElement) { | 77 SVGElement* contextElement) { |
| 78 // SVGMarkerOrientEnumeration is only animated via SVGAngle | 78 // SVGMarkerOrientEnumeration is only animated via SVGAngle |
| 79 ASSERT_NOT_REACHED(); | 79 NOTREACHED(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 float SVGMarkerOrientEnumeration::calculateDistance( | 82 float SVGMarkerOrientEnumeration::calculateDistance( |
| 83 SVGPropertyBase* to, | 83 SVGPropertyBase* to, |
| 84 SVGElement* contextElement) { | 84 SVGElement* contextElement) { |
| 85 // SVGMarkerOrientEnumeration is only animated via SVGAngle | 85 // SVGMarkerOrientEnumeration is only animated via SVGAngle |
| 86 ASSERT_NOT_REACHED(); | 86 NOTREACHED(); |
| 87 return -1.0; | 87 return -1.0; |
| 88 } | 88 } |
| 89 | 89 |
| 90 SVGAngle::SVGAngle() | 90 SVGAngle::SVGAngle() |
| 91 : m_unitType(kSvgAngletypeUnspecified), | 91 : m_unitType(kSvgAngletypeUnspecified), |
| 92 m_valueInSpecifiedUnits(0), | 92 m_valueInSpecifiedUnits(0), |
| 93 m_orientType(SVGMarkerOrientEnumeration::create(this)) {} | 93 m_orientType(SVGMarkerOrientEnumeration::create(this)) {} |
| 94 | 94 |
| 95 SVGAngle::SVGAngle(SVGAngleType unitType, | 95 SVGAngle::SVGAngle(SVGAngleType unitType, |
| 96 float valueInSpecifiedUnits, | 96 float valueInSpecifiedUnits, |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 440 |
| 441 void SVGAngle::orientTypeChanged() { | 441 void SVGAngle::orientTypeChanged() { |
| 442 if (orientType()->enumValue() == SVGMarkerOrientAuto || | 442 if (orientType()->enumValue() == SVGMarkerOrientAuto || |
| 443 orientType()->enumValue() == SVGMarkerOrientAutoStartReverse) { | 443 orientType()->enumValue() == SVGMarkerOrientAutoStartReverse) { |
| 444 m_unitType = kSvgAngletypeUnspecified; | 444 m_unitType = kSvgAngletypeUnspecified; |
| 445 m_valueInSpecifiedUnits = 0; | 445 m_valueInSpecifiedUnits = 0; |
| 446 } | 446 } |
| 447 } | 447 } |
| 448 | 448 |
| 449 } // namespace blink | 449 } // namespace blink |
| OLD | NEW |