Lines Matching refs:attr
1065 void HTMLInputElement::parseMappedAttribute(MappedAttribute *attr)
1067 if (attr->name() == nameAttr) {
1069 m_data.setName(attr->value());
1071 HTMLFormControlElementWithState::parseMappedAttribute(attr);
1072 } else if (attr->name() == autocompleteAttr) {
1073 if (equalIgnoringCase(attr->value(), "off")) {
1079 if (attr->isEmpty())
1087 } else if (attr->name() == typeAttr) {
1088 setInputType(attr->value());
1089 } else if (attr->name() == valueAttr) {
1095 } else if (attr->name() == checkedAttr) {
1096 m_defaultChecked = !attr->isNull();
1102 } else if (attr->name() == maxlengthAttr) {
1103 InputElement::parseMaxLengthAttribute(m_data, this, this, attr);
1105 } else if (attr->name() == sizeAttr)
1106 InputElement::parseSizeAttribute(m_data, this, attr);
1107 else if (attr
1110 } else if (attr->name() == srcAttr) {
1116 } else if (attr->name() == usemapAttr ||
1117 attr->name() == accesskeyAttr) {
1119 } else if (attr->name() == vspaceAttr) {
1120 addCSSLength(attr, CSSPropertyMarginTop, attr->value());
1121 addCSSLength(attr, CSSPropertyMarginBottom, attr->value());
1122 } else if (attr->name() == hspaceAttr) {
1123 addCSSLength(attr, CSSPropertyMarginLeft, attr->value());
1124 addCSSLength(attr, CSSPropertyMarginRight, attr->value());
1125 } else if (attr->name() == alignAttr) {
1127 addHTMLAlignment(attr);
1128 } else if (attr->name() == widthAttr) {
1130 addCSSLength(attr, CSSPropertyWidth, attr->value());
1131 } else if (attr->name() == heightAttr) {
1133 addCSSLength(attr, CSSPropertyHeight, attr->value());
1137 else if (attr->name() == onsearchAttr) {
1138 setAttributeEventListener(eventNames().searchEvent, createAttributeEventListener(this, attr));
1139 } else if (attr->name() == resultsAttr) {
1141 m_maxResults = !attr->isNull() ? std::min(attr->value().toInt(), maxSavedResults) : -1;
1149 } else if (attr->name() == autosaveAttr
1150 || attr->name() == incrementalAttr)
1152 else if (attr->name() == minAttr
1153 || attr->name() == maxAttr
1154 || attr->name() == multipleAttr
1155 || attr->name() == patternAttr
1156 || attr->name() == precisionAttr
1157 || attr->name() == stepAttr)
1160 else if (attr->name() == listAttr)
1161 m_hasNonEmptyList = !attr->isEmpty();
1165 HTMLTextFormControlElement::parseMappedAttribute(attr);
2321 bool HTMLInputElement::isURLAttribute(Attribute *attr) const
2323 return (attr->name() == srcAttr);