Home | History | Annotate | Download | only in properties

Lines Matching defs:newItem

89     ListItemType initializeValues(PropertyType& values, const ListItemType& newItem, ExceptionCode& ec)
95 processIncomingListItemValue(newItem, 0);
99 values.append(newItem);
102 return newItem;
120 RefPtr<ListItemTearOff> newItem = passNewItem;
124 processIncomingListItemWrapper(newItem, 0);
130 values.append(newItem->propertyReference());
131 wrappers.append(newItem);
134 return newItem.release();
182 ListItemType insertItemBeforeValues(PropertyType& values, const ListItemType& newItem, unsigned index, ExceptionCode& ec)
191 // Spec: If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
192 processIncomingListItemValue(newItem, &index);
196 values.insert(index, newItem);
199 return newItem;
221 RefPtr<ListItemTearOff> newItem = passNewItem;
224 // Spec: If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
225 processIncomingListItemWrapper(newItem, &index);
229 values.insert(index, newItem->propertyReference());
231 // Store new wrapper at position 'index', change its underlying value, so mutations of newItem, directly affect the item in the list.
232 wrappers.insert(index, newItem);
235 return newItem.release();
252 ListItemType replaceItemValues(PropertyType& values, const ListItemType& newItem, unsigned index, ExceptionCode& ec)
257 // Spec: If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
259 processIncomingListItemValue(newItem, &index);
262 // 'newItem' already lived in our list, we removed it, and now we're empty, which means there's nothing to replace.
268 values.at(index) = newItem;
271 return newItem;
289 RefPtr<ListItemTearOff> newItem = passNewItem;
291 // Spec: If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
293 processIncomingListItemWrapper(newItem, &index);
308 values.at(index) = newItem->propertyReference();
309 wrappers.at(index) = newItem;
312 return newItem.release();
365 ListItemType appendItemValues(PropertyType& values, const ListItemType& newItem, ExceptionCode& ec)
370 // Spec: If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
371 processIncomingListItemValue(newItem, 0);
374 values.append(newItem);
377 return newItem;
395 RefPtr<ListItemTearOff> newItem = passNewItem;
398 // Spec: If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
399 processIncomingListItemWrapper(newItem, 0);
402 values.append(newItem->propertyReference());
403 wrappers.append(newItem);
406 return newItem.release();
418 virtual void processIncomingListItemValue(const ListItemType& newItem, unsigned* indexToModify) = 0;
419 virtual void processIncomingListItemWrapper(RefPtr<ListItemTearOff>& newItem, unsigned* indexToModify) = 0;