| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 int HTMLBodyElement::scrollWidth() | 327 int HTMLBodyElement::scrollWidth() |
| 326 { | 328 { |
| 327 // Update the document's layout. | 329 // Update the document's layout. |
| 328 Document& document = this->document(); | 330 Document& document = this->document(); |
| 329 document.updateLayoutIgnorePendingStylesheets(); | 331 document.updateLayoutIgnorePendingStylesheets(); |
| 330 FrameView* view = document.view(); | 332 FrameView* view = document.view(); |
| 331 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; | 333 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; |
| 332 } | 334 } |
| 333 | 335 |
| 334 } // namespace WebCore | 336 } // namespace WebCore |
| OLD | NEW |