| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 static PassRefPtr<SVGStaticListPropertyTearOff<PropertyType> > create(SVGEle
ment* contextElement, PropertyType& values) | 40 static PassRefPtr<SVGStaticListPropertyTearOff<PropertyType> > create(SVGEle
ment* contextElement, PropertyType& values) |
| 41 { | 41 { |
| 42 ASSERT(contextElement); | 42 ASSERT(contextElement); |
| 43 return adoptRef(new SVGStaticListPropertyTearOff<PropertyType>(contextEl
ement, values)); | 43 return adoptRef(new SVGStaticListPropertyTearOff<PropertyType>(contextEl
ement, values)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 SVGElement* contextElement() const { return m_contextElement; } | 46 SVGElement* contextElement() const { return m_contextElement; } |
| 47 | 47 |
| 48 // SVGList API | 48 // SVGList API |
| 49 void clear(ExceptionState& es) | 49 void clear(ExceptionState& exceptionState) |
| 50 { | 50 { |
| 51 Base::clearValues(es); | 51 Base::clearValues(exceptionState); |
| 52 } | 52 } |
| 53 | 53 |
| 54 ListItemType initialize(const ListItemType& newItem, ExceptionState& es) | 54 ListItemType initialize(const ListItemType& newItem, ExceptionState& excepti
onState) |
| 55 { | 55 { |
| 56 return Base::initializeValues(newItem, es); | 56 return Base::initializeValues(newItem, exceptionState); |
| 57 } | 57 } |
| 58 | 58 |
| 59 ListItemType getItem(unsigned index, ExceptionState& es) | 59 ListItemType getItem(unsigned index, ExceptionState& exceptionState) |
| 60 { | 60 { |
| 61 return Base::getItemValues(index, es); | 61 return Base::getItemValues(index, exceptionState); |
| 62 } | 62 } |
| 63 | 63 |
| 64 ListItemType insertItemBefore(const ListItemType& newItem, unsigned index, E
xceptionState& es) | 64 ListItemType insertItemBefore(const ListItemType& newItem, unsigned index, E
xceptionState& exceptionState) |
| 65 { | 65 { |
| 66 return Base::insertItemBeforeValues(newItem, index, es); | 66 return Base::insertItemBeforeValues(newItem, index, exceptionState); |
| 67 } | 67 } |
| 68 | 68 |
| 69 ListItemType replaceItem(const ListItemType& newItem, unsigned index, Except
ionState& es) | 69 ListItemType replaceItem(const ListItemType& newItem, unsigned index, Except
ionState& exceptionState) |
| 70 { | 70 { |
| 71 return Base::replaceItemValues(newItem, index, es); | 71 return Base::replaceItemValues(newItem, index, exceptionState); |
| 72 } | 72 } |
| 73 | 73 |
| 74 ListItemType removeItem(unsigned index, ExceptionState& es) | 74 ListItemType removeItem(unsigned index, ExceptionState& exceptionState) |
| 75 { | 75 { |
| 76 return Base::removeItemValues(index, es); | 76 return Base::removeItemValues(index, exceptionState); |
| 77 } | 77 } |
| 78 | 78 |
| 79 ListItemType appendItem(const ListItemType& newItem, ExceptionState& es) | 79 ListItemType appendItem(const ListItemType& newItem, ExceptionState& excepti
onState) |
| 80 { | 80 { |
| 81 return Base::appendItemValues(newItem, es); | 81 return Base::appendItemValues(newItem, exceptionState); |
| 82 } | 82 } |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 SVGStaticListPropertyTearOff(SVGElement* contextElement, PropertyType& value
s) | 85 SVGStaticListPropertyTearOff(SVGElement* contextElement, PropertyType& value
s) |
| 86 : SVGListProperty<PropertyType>(UndefinedRole, values, 0) | 86 : SVGListProperty<PropertyType>(UndefinedRole, values, 0) |
| 87 , m_contextElement(contextElement) | 87 , m_contextElement(contextElement) |
| 88 { | 88 { |
| 89 } | 89 } |
| 90 | 90 |
| 91 virtual bool isReadOnly() const | 91 virtual bool isReadOnly() const |
| (...skipping 20 matching lines...) Expand all Loading... |
| 112 return true; | 112 return true; |
| 113 } | 113 } |
| 114 | 114 |
| 115 private: | 115 private: |
| 116 SVGElement* m_contextElement; | 116 SVGElement* m_contextElement; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } | 119 } |
| 120 | 120 |
| 121 #endif // SVGStaticListPropertyTearOff_h | 121 #endif // SVGStaticListPropertyTearOff_h |
| OLD | NEW |