Home | History | Annotate | Download | only in html

Lines Matching refs:attr

90 void HTMLBodyElement::parseMappedAttribute(MappedAttribute *attr)
92 if (attr->name() == backgroundAttr) {
93 String url = deprecatedParseURL(attr->value());
95 addCSSImageProperty(attr, CSSPropertyBackgroundImage, document()->completeURL(url).string());
96 } else if (attr->name() == marginwidthAttr || attr->name() == leftmarginAttr) {
97 addCSSLength(attr, CSSPropertyMarginRight, attr->value());
98 addCSSLength(attr, CSSPropertyMarginLeft, attr->value());
99 } else if (attr->name() == marginheightAttr || attr->name() == topmarginAttr) {
100 addCSSLength(attr, CSSPropertyMarginBottom, attr->value());
101 addCSSLength(attr, CSSPropertyMarginTop, attr->value());
102 } else if (attr->name() == bgcolorAttr) {
103 addCSSColor(attr, CSSPropertyBackgroundColor, attr->value());
104 } else if (attr->name() == textAttr) {
105 addCSSColor(attr, CSSPropertyColor, attr->value());
106 } else if (attr->name() == bgpropertiesAttr) {
107 if (equalIgnoringCase(attr->value(), "fixed"))
108 addCSSProperty(attr, CSSPropertyBackgroundAttachment, CSSValueFixed);
109 } else if (attr->name() == vlinkAttr ||
110 attr->name() == alinkAttr ||
111 attr->name() == linkAttr) {
112 if (attr->isNull()) {
113 if (attr->name() == linkAttr)
115 else if (attr->name() == vlinkAttr)
122 m_linkDecl->setProperty(CSSPropertyColor, attr->value(), false, false);
126 if (attr->name() == linkAttr)
128 else if (attr->name() == vlinkAttr)
137 } else if (attr->name() == onloadAttr)
138 document()->setWindowAttributeEventListener(eventNames().loadEvent, createAttributeEventListener(document()->frame(), attr));
139 else if (attr->name() == onbeforeunloadAttr)
140 document()->setWindowAttributeEventListener(eventNames().beforeunloadEvent, createAttributeEventListener(document()->frame(), attr));
141 else if (attr->name() == onunloadAttr)
142 document()->setWindowAttributeEventListener(eventNames().unloadEvent, createAttributeEventListener(document()->frame(), attr));
143 else if (attr->name() == onpagehideAttr)
144 document()->setWindowAttributeEventListener(eventNames().pagehideEvent, createAttributeEventListener(document()->frame(), attr));
145 else if (attr->name() == onpageshowAttr)
146 document()->setWindowAttributeEventListener(eventNames().pageshowEvent, createAttributeEventListener(document()->frame(), attr));
147 else if (attr->name() == onpopstateAttr)
148 document()->setWindowAttributeEventListener(eventNames().popstateEvent, createAttributeEventListener(document()->frame(), attr));
149 else if (attr->name() == onblurAttr)
150 document()->setWindowAttributeEventListener(eventNames().blurEvent, createAttributeEventListener(document()->frame(), attr));
151 else if (attr->name() == onfocusAttr)
152 document()->setWindowAttributeEventListener(eventNames().focusEvent, createAttributeEventListener(document()->frame(), attr));
154 else if (attr->name() == onorientationchangeAttr)
155 document()->setWindowAttributeEventListener(eventNames().orientationchangeEvent, createAttributeEventListener(document()->frame(), attr));
157 else if (attr->name() == onhashchangeAttr)
158 document()->setWindowAttributeEventListener(eventNames().hashchangeEvent, createAttributeEventListener(document()->frame(), attr));
159 else if (attr->name() == onresizeAttr)
160 document()->setWindowAttributeEventListener(eventNames().resizeEvent, createAttributeEventListener(document()->frame(), attr));
161 else if (attr->name() == onscrollAttr)
162 document()->setWindowAttributeEventListener(eventNames().scrollEvent, createAttributeEventListener(document()->frame(), attr));
163 else if (attr->name() == onstorageAttr)
164 document()->setWindowAttributeEventListener(eventNames().storageEvent, createAttributeEventListener(document()->frame(), attr));
165 else if (attr->name() == ononlineAttr)
166 document()->setWindowAttributeEventListener(eventNames().onlineEvent, createAttributeEventListener(document()->frame(), attr));
167 else if (attr->name() == onofflineAttr)
168 document()->setWindowAttributeEventListener(eventNames().offlineEvent, createAttributeEventListener(document()->frame(), attr));
170 HTMLElement::parseMappedAttribute(attr);
213 bool HTMLBodyElement::isURLAttribute(Attribute *attr) const
215 return attr->name() == backgroundAttr;