Lines Matching refs:ec
41 void HTMLOptionsCollection::add(PassRefPtr<HTMLOptionElement> element, ExceptionCode& ec)
43 add(element, length(), ec);
46 void HTMLOptionsCollection::add(PassRefPtr<HTMLOptionElement> element, int index, ExceptionCode& ec)
51 ec = TYPE_MISMATCH_ERR;
56 ec = INDEX_SIZE_ERR;
60 ec = 0;
64 select->add(newOption, 0, ec);
66 select->add(newOption, static_cast<HTMLOptionElement*>(item(index)), ec);
68 ASSERT(!ec);
86 void HTMLOptionsCollection::setLength(unsigned length, ExceptionCode& ec)
88 toHTMLSelectElement(ownerNode())->setLength(length, ec);