OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Simon Hausmann (hausmann@kde.org) | 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 else if (name == onunloadAttr) | 125 else if (name == onunloadAttr) |
126 document().setWindowAttributeEventListener(EventTypeNames::unload, creat
eAttributeEventListener(document().frame(), name, value)); | 126 document().setWindowAttributeEventListener(EventTypeNames::unload, creat
eAttributeEventListener(document().frame(), name, value)); |
127 else if (name == onpagehideAttr) | 127 else if (name == onpagehideAttr) |
128 document().setWindowAttributeEventListener(EventTypeNames::pagehide, cre
ateAttributeEventListener(document().frame(), name, value)); | 128 document().setWindowAttributeEventListener(EventTypeNames::pagehide, cre
ateAttributeEventListener(document().frame(), name, value)); |
129 else if (name == onpageshowAttr) | 129 else if (name == onpageshowAttr) |
130 document().setWindowAttributeEventListener(EventTypeNames::pageshow, cre
ateAttributeEventListener(document().frame(), name, value)); | 130 document().setWindowAttributeEventListener(EventTypeNames::pageshow, cre
ateAttributeEventListener(document().frame(), name, value)); |
131 else if (name == onpopstateAttr) | 131 else if (name == onpopstateAttr) |
132 document().setWindowAttributeEventListener(EventTypeNames::popstate, cre
ateAttributeEventListener(document().frame(), name, value)); | 132 document().setWindowAttributeEventListener(EventTypeNames::popstate, cre
ateAttributeEventListener(document().frame(), name, value)); |
133 else if (name == onblurAttr) | 133 else if (name == onblurAttr) |
134 document().setWindowAttributeEventListener(EventTypeNames::blur, createA
ttributeEventListener(document().frame(), name, value)); | 134 document().setWindowAttributeEventListener(EventTypeNames::blur, createA
ttributeEventListener(document().frame(), name, value)); |
| 135 else if (name == onerrorAttr) |
| 136 document().setWindowAttributeEventListener(EventTypeNames::error, create
AttributeEventListener(document().frame(), name, value)); |
135 else if (name == onfocusAttr) | 137 else if (name == onfocusAttr) |
136 document().setWindowAttributeEventListener(EventTypeNames::focus, create
AttributeEventListener(document().frame(), name, value)); | 138 document().setWindowAttributeEventListener(EventTypeNames::focus, create
AttributeEventListener(document().frame(), name, value)); |
137 #if ENABLE(ORIENTATION_EVENTS) | 139 #if ENABLE(ORIENTATION_EVENTS) |
138 else if (name == onorientationchangeAttr) | 140 else if (name == onorientationchangeAttr) |
139 document().setWindowAttributeEventListener(EventTypeNames::orientationch
ange, createAttributeEventListener(document().frame(), name, value)); | 141 document().setWindowAttributeEventListener(EventTypeNames::orientationch
ange, createAttributeEventListener(document().frame(), name, value)); |
140 #endif | 142 #endif |
141 else if (name == onhashchangeAttr) | 143 else if (name == onhashchangeAttr) |
142 document().setWindowAttributeEventListener(EventTypeNames::hashchange, c
reateAttributeEventListener(document().frame(), name, value)); | 144 document().setWindowAttributeEventListener(EventTypeNames::hashchange, c
reateAttributeEventListener(document().frame(), name, value)); |
143 else if (name == onresizeAttr) | 145 else if (name == onresizeAttr) |
144 document().setWindowAttributeEventListener(EventTypeNames::resize, creat
eAttributeEventListener(document().frame(), name, value)); | 146 document().setWindowAttributeEventListener(EventTypeNames::resize, creat
eAttributeEventListener(document().frame(), name, value)); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 } | 288 } |
287 | 289 |
288 void HTMLBodyElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const | 290 void HTMLBodyElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const |
289 { | 291 { |
290 HTMLElement::addSubresourceAttributeURLs(urls); | 292 HTMLElement::addSubresourceAttributeURLs(urls); |
291 | 293 |
292 addSubresourceURL(urls, document().completeURL(getAttribute(backgroundAttr))
); | 294 addSubresourceURL(urls, document().completeURL(getAttribute(backgroundAttr))
); |
293 } | 295 } |
294 | 296 |
295 } // namespace WebCore | 297 } // namespace WebCore |
OLD | NEW |