| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010, 2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010, 2012. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 #include "core/svg/SVGPathByteStream.h" | 23 #include "core/svg/SVGPathByteStream.h" |
| 24 #include "core/svg/SVGPathElement.h" | 24 #include "core/svg/SVGPathElement.h" |
| 25 #include "core/svg/SVGPathSegList.h" | 25 #include "core/svg/SVGPathSegList.h" |
| 26 #include "core/svg/SVGPathUtilities.h" | 26 #include "core/svg/SVGPathUtilities.h" |
| 27 #include "core/svg/properties/SVGAnimatedListPropertyTearOff.h" | 27 #include "core/svg/properties/SVGAnimatedListPropertyTearOff.h" |
| 28 #include "core/svg/properties/SVGPathSegListPropertyTearOff.h" | 28 #include "core/svg/properties/SVGPathSegListPropertyTearOff.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 class SVGAnimatedPathSegListPropertyTearOff : public SVGAnimatedListPropertyTear
Off<SVGPathSegList> { | 32 class SVGAnimatedPathSegListPropertyTearOff FINAL : public SVGAnimatedListProper
tyTearOff<SVGPathSegList> { |
| 33 public: | 33 public: |
| 34 virtual SVGListProperty<SVGPathSegList>* baseVal() | 34 virtual SVGListProperty<SVGPathSegList>* baseVal() OVERRIDE |
| 35 { | 35 { |
| 36 if (!m_baseVal) | 36 if (!m_baseVal) |
| 37 m_baseVal = SVGPathSegListPropertyTearOff::create(this, BaseValRole,
PathSegUnalteredRole, m_values, m_wrappers); | 37 m_baseVal = SVGPathSegListPropertyTearOff::create(this, BaseValRole,
PathSegUnalteredRole, m_values, m_wrappers); |
| 38 return static_cast<SVGListProperty<SVGPathSegList>*>(m_baseVal.get()); | 38 return static_cast<SVGListProperty<SVGPathSegList>*>(m_baseVal.get()); |
| 39 } | 39 } |
| 40 | 40 |
| 41 virtual SVGListProperty<SVGPathSegList>* animVal() | 41 virtual SVGListProperty<SVGPathSegList>* animVal() OVERRIDE |
| 42 { | 42 { |
| 43 if (!m_animVal) | 43 if (!m_animVal) |
| 44 m_animVal = SVGPathSegListPropertyTearOff::create(this, AnimValRole,
PathSegUnalteredRole, m_values, m_wrappers); | 44 m_animVal = SVGPathSegListPropertyTearOff::create(this, AnimValRole,
PathSegUnalteredRole, m_values, m_wrappers); |
| 45 return static_cast<SVGListProperty<SVGPathSegList>*>(m_animVal.get()); | 45 return static_cast<SVGListProperty<SVGPathSegList>*>(m_animVal.get()); |
| 46 } | 46 } |
| 47 | 47 |
| 48 int findItem(const RefPtr<SVGPathSeg>& segment) const | 48 int findItem(const RefPtr<SVGPathSeg>& segment) const |
| 49 { | 49 { |
| 50 // This should ever be called for our baseVal, as animVal can't modify t
he list. | 50 // This should ever be called for our baseVal, as animVal can't modify t
he list. |
| 51 ASSERT(m_baseVal); | 51 ASSERT(m_baseVal); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 , m_animatedPathByteStream(0) | 109 , m_animatedPathByteStream(0) |
| 110 { | 110 { |
| 111 } | 111 } |
| 112 | 112 |
| 113 SVGPathByteStream* m_animatedPathByteStream; | 113 SVGPathByteStream* m_animatedPathByteStream; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } | 116 } |
| 117 | 117 |
| 118 #endif // SVGAnimatedPathSegListPropertyTearOff_h | 118 #endif // SVGAnimatedPathSegListPropertyTearOff_h |
| OLD | NEW |