| 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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 return false; | 197 return false; |
| 198 } | 198 } |
| 199 | 199 |
| 200 static void focusPostAttach(Node* element) | 200 static void focusPostAttach(Node* element) |
| 201 { | 201 { |
| 202 toElement(element)->focus(); | 202 toElement(element)->focus(); |
| 203 element->deref(); | 203 element->deref(); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void HTMLFormControlElement::attach() | 206 void HTMLFormControlElement::attach(const AttachContext& context) |
| 207 { | 207 { |
| 208 PostAttachCallbackDisabler disabler(this); | 208 PostAttachCallbackDisabler disabler(this); |
| 209 | 209 |
| 210 HTMLElement::attach(); | 210 HTMLElement::attach(context); |
| 211 | 211 |
| 212 // The call to updateFromElement() needs to go after the call through | 212 // The call to updateFromElement() needs to go after the call through |
| 213 // to the base class's attach() because that can sometimes do a close | 213 // to the base class's attach() because that can sometimes do a close |
| 214 // on the renderer. | 214 // on the renderer. |
| 215 if (renderer()) | 215 if (renderer()) |
| 216 renderer()->updateFromElement(); | 216 renderer()->updateFromElement(); |
| 217 | 217 |
| 218 if (shouldAutofocus(this)) { | 218 if (shouldAutofocus(this)) { |
| 219 setAutofocused(); | 219 setAutofocused(); |
| 220 ref(); | 220 ref(); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 } | 473 } |
| 474 | 474 |
| 475 void HTMLFormControlElement::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const | 475 void HTMLFormControlElement::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const |
| 476 { | 476 { |
| 477 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | 477 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); |
| 478 LabelableElement::reportMemoryUsage(memoryObjectInfo); | 478 LabelableElement::reportMemoryUsage(memoryObjectInfo); |
| 479 info.addMember(m_validationMessage, "validationMessage"); | 479 info.addMember(m_validationMessage, "validationMessage"); |
| 480 } | 480 } |
| 481 | 481 |
| 482 } // namespace Webcore | 482 } // namespace Webcore |
| OLD | NEW |