| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 } | 236 } |
| 237 | 237 |
| 238 void HTMLFormControlElement::attachLayoutTree(const AttachContext& context) | 238 void HTMLFormControlElement::attachLayoutTree(const AttachContext& context) |
| 239 { | 239 { |
| 240 HTMLElement::attachLayoutTree(context); | 240 HTMLElement::attachLayoutTree(context); |
| 241 | 241 |
| 242 if (!layoutObject()) | 242 if (!layoutObject()) |
| 243 return; | 243 return; |
| 244 | 244 |
| 245 // The call to updateFromElement() needs to go after the call through | 245 // The call to updateFromElement() needs to go after the call through |
| 246 // to the base class's attach() because that can sometimes do a close | 246 // to the base class's attachLayoutTree() because that can sometimes do a cl
ose |
| 247 // on the layoutObject. | 247 // on the layoutObject. |
| 248 layoutObject()->updateFromElement(); | 248 layoutObject()->updateFromElement(); |
| 249 | 249 |
| 250 // FIXME: Autofocus handling should be moved to insertedInto according to | 250 // FIXME: Autofocus handling should be moved to insertedInto according to |
| 251 // the standard. | 251 // the standard. |
| 252 if (shouldAutofocusOnAttach(this)) | 252 if (shouldAutofocusOnAttach(this)) |
| 253 document().setAutofocusElement(this); | 253 document().setAutofocusElement(this); |
| 254 } | 254 } |
| 255 | 255 |
| 256 void HTMLFormControlElement::didMoveToNewDocument(Document& oldDocument) | 256 void HTMLFormControlElement::didMoveToNewDocument(Document& oldDocument) |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 dispatchFormControlChangeEvent(); | 654 dispatchFormControlChangeEvent(); |
| 655 } | 655 } |
| 656 | 656 |
| 657 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element
& source) | 657 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element
& source) |
| 658 { | 658 { |
| 659 HTMLElement::copyNonAttributePropertiesFromElement(source); | 659 HTMLElement::copyNonAttributePropertiesFromElement(source); |
| 660 setNeedsValidityCheck(); | 660 setNeedsValidityCheck(); |
| 661 } | 661 } |
| 662 | 662 |
| 663 } // namespace blink | 663 } // namespace blink |
| OLD | NEW |