PassRefPtr<CSSMutableStyleDeclaration> CSSStyleDeclaration::copyPropertiesInSet(const int* set, unsigned length) const { DeprecatedValueList<CSSProperty> list; unsigned variableDependentValueCount = 0; for (unsigned i = 0; i < length; i++) { RefPtr<CSSValue> value = getPropertyCSSValue(set[i]); if (value) { if (value->isVariableDependentValue()) variableDependentValueCount++; list.append(CSSProperty(set[i], value.release(), false)); } } return CSSMutableStyleDeclaration::create(list, variableDependentValueCount); }
DeprecatedValueList< RefPtr<Node> > HTMLCollection::namedItems(const AtomicString &name) const { DeprecatedValueList< RefPtr<Node> > result; if (name.isEmpty()) return result; resetCollectionInfo(); updateNameCache(); Vector<Node*>* idResults = info->idCache.get(name.impl()); Vector<Node*>* nameResults = info->nameCache.get(name.impl()); for (unsigned i = 0; idResults && i < idResults->size(); ++i) result.append(RefPtr<Node>(idResults->at(i))); for (unsigned i = 0; nameResults && i < nameResults->size(); ++i) result.append(RefPtr<Node>(nameResults->at(i))); return result; }
void RenderView::absoluteRects(DeprecatedValueList<IntRect>& rects, int _tx, int _ty) { rects.append(IntRect(_tx, _ty, m_layer->width(), m_layer->height())); }