| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 dispatchChangeEvent(); | 337 dispatchChangeEvent(); |
| 338 setChangedSinceLastFormControlChangeEvent(false); | 338 setChangedSinceLastFormControlChangeEvent(false); |
| 339 } | 339 } |
| 340 | 340 |
| 341 void HTMLFormControlElement::dispatchFormControlInputEvent() | 341 void HTMLFormControlElement::dispatchFormControlInputEvent() |
| 342 { | 342 { |
| 343 setChangedSinceLastFormControlChangeEvent(true); | 343 setChangedSinceLastFormControlChangeEvent(true); |
| 344 HTMLElement::dispatchInputEvent(); | 344 HTMLElement::dispatchInputEvent(); |
| 345 } | 345 } |
| 346 | 346 |
| 347 void HTMLFormControlElement::dispatchKeyDownEvent() |
| 348 { |
| 349 dispatchScopedEvent(Event::createBubble(EventTypeNames::keydown)); |
| 350 } |
| 351 |
| 352 void HTMLFormControlElement::dispatchKeyUpEvent() |
| 353 { |
| 354 dispatchScopedEvent(Event::createBubble(EventTypeNames::keyup)); |
| 355 } |
| 356 |
| 347 HTMLFormElement* HTMLFormControlElement::formOwner() const | 357 HTMLFormElement* HTMLFormControlElement::formOwner() const |
| 348 { | 358 { |
| 349 return FormAssociatedElement::form(); | 359 return FormAssociatedElement::form(); |
| 350 } | 360 } |
| 351 | 361 |
| 352 bool HTMLFormControlElement::isDisabledFormControl() const | 362 bool HTMLFormControlElement::isDisabledFormControl() const |
| 353 { | 363 { |
| 354 if (fastHasAttribute(disabledAttr)) | 364 if (fastHasAttribute(disabledAttr)) |
| 355 return true; | 365 return true; |
| 356 | 366 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 dispatchFormControlChangeEvent(); | 664 dispatchFormControlChangeEvent(); |
| 655 } | 665 } |
| 656 | 666 |
| 657 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element
& source) | 667 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element
& source) |
| 658 { | 668 { |
| 659 HTMLElement::copyNonAttributePropertiesFromElement(source); | 669 HTMLElement::copyNonAttributePropertiesFromElement(source); |
| 660 setNeedsValidityCheck(); | 670 setNeedsValidityCheck(); |
| 661 } | 671 } |
| 662 | 672 |
| 663 } // namespace blink | 673 } // namespace blink |
| OLD | NEW |