| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 RefPtr<ListItemTearOff>& item = m_wrappers->at(itemIndex); | 73 RefPtr<ListItemTearOff>& item = m_wrappers->at(itemIndex); |
| 74 item->detachWrapper(); | 74 item->detachWrapper(); |
| 75 m_wrappers->remove(itemIndex); | 75 m_wrappers->remove(itemIndex); |
| 76 m_values->remove(itemIndex); | 76 m_values->remove(itemIndex); |
| 77 | 77 |
| 78 if (shouldSynchronizeWrappers) | 78 if (shouldSynchronizeWrappers) |
| 79 commitChange(); | 79 commitChange(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 // SVGList API | 82 // SVGList API |
| 83 void clear(ExceptionState& es) | 83 void clear(ExceptionState& exceptionState) |
| 84 { | 84 { |
| 85 Base::clearValuesAndWrappers(es); | 85 Base::clearValuesAndWrappers(exceptionState); |
| 86 } | 86 } |
| 87 | 87 |
| 88 PassListItemTearOff initialize(PassListItemTearOff passNewItem, ExceptionSta
te& es) | 88 PassListItemTearOff initialize(PassListItemTearOff passNewItem, ExceptionSta
te& exceptionState) |
| 89 { | 89 { |
| 90 return Base::initializeValuesAndWrappers(passNewItem, es); | 90 return Base::initializeValuesAndWrappers(passNewItem, exceptionState); |
| 91 } | 91 } |
| 92 | 92 |
| 93 PassListItemTearOff getItem(unsigned index, ExceptionState& es) | 93 PassListItemTearOff getItem(unsigned index, ExceptionState& exceptionState) |
| 94 { | 94 { |
| 95 ASSERT(m_animatedProperty); | 95 ASSERT(m_animatedProperty); |
| 96 return Base::getItemValuesAndWrappers(m_animatedProperty, index, es); | 96 return Base::getItemValuesAndWrappers(m_animatedProperty, index, excepti
onState); |
| 97 } | 97 } |
| 98 | 98 |
| 99 PassListItemTearOff insertItemBefore(PassListItemTearOff passNewItem, unsign
ed index, ExceptionState& es) | 99 PassListItemTearOff insertItemBefore(PassListItemTearOff passNewItem, unsign
ed index, ExceptionState& exceptionState) |
| 100 { | 100 { |
| 101 return Base::insertItemBeforeValuesAndWrappers(passNewItem, index, es); | 101 return Base::insertItemBeforeValuesAndWrappers(passNewItem, index, excep
tionState); |
| 102 } | 102 } |
| 103 | 103 |
| 104 PassListItemTearOff replaceItem(PassListItemTearOff passNewItem, unsigned in
dex, ExceptionState& es) | 104 PassListItemTearOff replaceItem(PassListItemTearOff passNewItem, unsigned in
dex, ExceptionState& exceptionState) |
| 105 { | 105 { |
| 106 return Base::replaceItemValuesAndWrappers(passNewItem, index, es); | 106 return Base::replaceItemValuesAndWrappers(passNewItem, index, exceptionS
tate); |
| 107 } | 107 } |
| 108 | 108 |
| 109 PassListItemTearOff removeItem(unsigned index, ExceptionState& es) | 109 PassListItemTearOff removeItem(unsigned index, ExceptionState& exceptionStat
e) |
| 110 { | 110 { |
| 111 ASSERT(m_animatedProperty); | 111 ASSERT(m_animatedProperty); |
| 112 return Base::removeItemValuesAndWrappers(m_animatedProperty, index, es); | 112 return Base::removeItemValuesAndWrappers(m_animatedProperty, index, exce
ptionState); |
| 113 } | 113 } |
| 114 | 114 |
| 115 PassListItemTearOff appendItem(PassListItemTearOff passNewItem, ExceptionSta
te& es) | 115 PassListItemTearOff appendItem(PassListItemTearOff passNewItem, ExceptionSta
te& exceptionState) |
| 116 { | 116 { |
| 117 return Base::appendItemValuesAndWrappers(passNewItem, es); | 117 return Base::appendItemValuesAndWrappers(passNewItem, exceptionState); |
| 118 } | 118 } |
| 119 | 119 |
| 120 SVGElement* contextElement() const | 120 SVGElement* contextElement() const |
| 121 { | 121 { |
| 122 ASSERT(m_animatedProperty); | 122 ASSERT(m_animatedProperty); |
| 123 return m_animatedProperty->contextElement(); | 123 return m_animatedProperty->contextElement(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void clearAnimatedProperty() | 126 void clearAnimatedProperty() |
| 127 { | 127 { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 222 } |
| 223 | 223 |
| 224 // Back pointer to the animated property that created us | 224 // Back pointer to the animated property that created us |
| 225 // For example (text.x.baseVal): m_animatedProperty points to the 'x' SVGAni
matedLengthList object | 225 // For example (text.x.baseVal): m_animatedProperty points to the 'x' SVGAni
matedLengthList object |
| 226 AnimatedListPropertyTearOff* m_animatedProperty; | 226 AnimatedListPropertyTearOff* m_animatedProperty; |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 } | 229 } |
| 230 | 230 |
| 231 #endif // SVGListPropertyTearOff_h | 231 #endif // SVGListPropertyTearOff_h |
| OLD | NEW |