Home | History | Annotate | Download | only in html

Lines Matching refs:attr

62 void HTMLTablePartElement::parseMappedAttribute(MappedAttribute *attr)
64 if (attr->name() == bgcolorAttr)
65 addCSSColor(attr, CSSPropertyBackgroundColor, attr->value());
66 else if (attr->name() == backgroundAttr) {
67 String url = deprecatedParseURL(attr->value());
69 addCSSImageProperty(attr, CSSPropertyBackgroundImage, document()->completeURL(url).string());
70 } else if (attr->name() == bordercolorAttr) {
71 if (!attr->value().isEmpty()) {
72 addCSSColor(attr, CSSPropertyBorderColor, attr->value());
73 addCSSProperty(attr, CSSPropertyBorderTopStyle, CSSValueSolid);
74 addCSSProperty(attr, CSSPropertyBorderBottomStyle, CSSValueSolid);
75 addCSSProperty(attr, CSSPropertyBorderLeftStyle, CSSValueSolid);
76 addCSSProperty(attr, CSSPropertyBorderRightStyle, CSSValueSolid);
78 } else if (attr->name() == valignAttr) {
79 if (!attr->value().isEmpty())
80 addCSSProperty(attr, CSSPropertyVerticalAlign, attr->value());
81 } else if (attr->name() == alignAttr) {
82 const AtomicString& v = attr->value();
84 addCSSProperty(attr, CSSPropertyTextAlign, CSSValueWebkitCenter);
86 addCSSProperty(attr, CSSPropertyTextAlign, CSSValueCenter);
88 addCSSProperty(attr, CSSPropertyTextAlign, CSSValueWebkitLeft);
90 addCSSProperty(attr, CSSPropertyTextAlign, CSSValueWebkitRight);
92 addCSSProperty(attr, CSSPropertyTextAlign, v);
93 } else if (attr->name() == heightAttr) {
94 if (!attr->value().isEmpty())
95 addCSSLength(attr, CSSPropertyHeight, attr->value());
97 HTMLElement::parseMappedAttribute(attr);