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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 else if (name == onscrollAttr) | 142 else if (name == onscrollAttr) |
143 document().setWindowAttributeEventListener(EventTypeNames::scroll, creat
eAttributeEventListener(document().frame(), name, value)); | 143 document().setWindowAttributeEventListener(EventTypeNames::scroll, creat
eAttributeEventListener(document().frame(), name, value)); |
144 else if (name == onselectionchangeAttr) | 144 else if (name == onselectionchangeAttr) |
145 document().setAttributeEventListener(EventTypeNames::selectionchange, cr
eateAttributeEventListener(document().frame(), name, value)); | 145 document().setAttributeEventListener(EventTypeNames::selectionchange, cr
eateAttributeEventListener(document().frame(), name, value)); |
146 else if (name == onstorageAttr) | 146 else if (name == onstorageAttr) |
147 document().setWindowAttributeEventListener(EventTypeNames::storage, crea
teAttributeEventListener(document().frame(), name, value)); | 147 document().setWindowAttributeEventListener(EventTypeNames::storage, crea
teAttributeEventListener(document().frame(), name, value)); |
148 else if (name == ononlineAttr) | 148 else if (name == ononlineAttr) |
149 document().setWindowAttributeEventListener(EventTypeNames::online, creat
eAttributeEventListener(document().frame(), name, value)); | 149 document().setWindowAttributeEventListener(EventTypeNames::online, creat
eAttributeEventListener(document().frame(), name, value)); |
150 else if (name == onofflineAttr) | 150 else if (name == onofflineAttr) |
151 document().setWindowAttributeEventListener(EventTypeNames::offline, crea
teAttributeEventListener(document().frame(), name, value)); | 151 document().setWindowAttributeEventListener(EventTypeNames::offline, crea
teAttributeEventListener(document().frame(), name, value)); |
| 152 else if (name == onlanguagechangeAttr) |
| 153 document().setWindowAttributeEventListener(EventTypeNames::languagechang
e, createAttributeEventListener(document().frame(), name, value)); |
152 else | 154 else |
153 HTMLElement::parseAttribute(name, value); | 155 HTMLElement::parseAttribute(name, value); |
154 } | 156 } |
155 | 157 |
156 Node::InsertionNotificationRequest HTMLBodyElement::insertedInto(ContainerNode*
insertionPoint) | 158 Node::InsertionNotificationRequest HTMLBodyElement::insertedInto(ContainerNode*
insertionPoint) |
157 { | 159 { |
158 HTMLElement::insertedInto(insertionPoint); | 160 HTMLElement::insertedInto(insertionPoint); |
159 return InsertionShouldCallDidNotifySubtreeInsertions; | 161 return InsertionShouldCallDidNotifySubtreeInsertions; |
160 } | 162 } |
161 | 163 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 double HTMLBodyElement::scrollWidth() | 324 double HTMLBodyElement::scrollWidth() |
323 { | 325 { |
324 // Update the document's layout. | 326 // Update the document's layout. |
325 Document& document = this->document(); | 327 Document& document = this->document(); |
326 document.updateLayoutIgnorePendingStylesheets(); | 328 document.updateLayoutIgnorePendingStylesheets(); |
327 FrameView* view = document.view(); | 329 FrameView* view = document.view(); |
328 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; | 330 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; |
329 } | 331 } |
330 | 332 |
331 } // namespace WebCore | 333 } // namespace WebCore |
OLD | NEW |