| 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, 2008, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv
ed. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 void HTMLTextAreaElement::defaultEventHandler(Event* event) | 254 void HTMLTextAreaElement::defaultEventHandler(Event* event) |
| 255 { | 255 { |
| 256 if (renderer() && (event->isMouseEvent() || event->isDragEvent() || event->h
asInterface(EventNames::WheelEvent) || event->type() == EventTypeNames::blur)) | 256 if (renderer() && (event->isMouseEvent() || event->isDragEvent() || event->h
asInterface(EventNames::WheelEvent) || event->type() == EventTypeNames::blur)) |
| 257 forwardEvent(event); | 257 forwardEvent(event); |
| 258 else if (renderer() && event->isBeforeTextInsertedEvent()) | 258 else if (renderer() && event->isBeforeTextInsertedEvent()) |
| 259 handleBeforeTextInsertedEvent(static_cast<BeforeTextInsertedEvent*>(even
t)); | 259 handleBeforeTextInsertedEvent(static_cast<BeforeTextInsertedEvent*>(even
t)); |
| 260 | 260 |
| 261 HTMLTextFormControlElement::defaultEventHandler(event); | 261 HTMLTextFormControlElement::defaultEventHandler(event); |
| 262 } | 262 } |
| 263 | 263 |
| 264 void HTMLTextAreaElement::handleFocusEvent(Element*, FocusType) | 264 void HTMLTextAreaElement::handleFocusEvent(Element*, WebFocusType) |
| 265 { | 265 { |
| 266 if (LocalFrame* frame = document().frame()) | 266 if (LocalFrame* frame = document().frame()) |
| 267 frame->spellChecker().didBeginEditing(this); | 267 frame->spellChecker().didBeginEditing(this); |
| 268 } | 268 } |
| 269 | 269 |
| 270 void HTMLTextAreaElement::subtreeHasChanged() | 270 void HTMLTextAreaElement::subtreeHasChanged() |
| 271 { | 271 { |
| 272 setChangedSinceLastFormControlChangeEvent(true); | 272 setChangedSinceLastFormControlChangeEvent(true); |
| 273 m_valueIsUpToDate = false; | 273 m_valueIsUpToDate = false; |
| 274 setNeedsValidityCheck(); | 274 setNeedsValidityCheck(); |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 { | 626 { |
| 627 return true; | 627 return true; |
| 628 } | 628 } |
| 629 | 629 |
| 630 bool HTMLTextAreaElement::supportsAutofocus() const | 630 bool HTMLTextAreaElement::supportsAutofocus() const |
| 631 { | 631 { |
| 632 return true; | 632 return true; |
| 633 } | 633 } |
| 634 | 634 |
| 635 } | 635 } |
| OLD | NEW |