| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 setSelectionRange(0, 0); | 253 setSelectionRange(0, 0); |
| 254 } else | 254 } else |
| 255 restoreCachedSelection(); | 255 restoreCachedSelection(); |
| 256 | 256 |
| 257 if (document().frame()) | 257 if (document().frame()) |
| 258 document().frame()->selection().revealSelection(); | 258 document().frame()->selection().revealSelection(); |
| 259 } | 259 } |
| 260 | 260 |
| 261 void HTMLTextAreaElement::defaultEventHandler(Event* event) | 261 void HTMLTextAreaElement::defaultEventHandler(Event* event) |
| 262 { | 262 { |
| 263 if (renderer() && (event->isMouseEvent() || event->isDragEvent() || event->h
asInterface(eventNames().interfaceForWheelEvent) || event->type() == EventTypeNa
mes::blur)) | 263 if (renderer() && (event->isMouseEvent() || event->isDragEvent() || event->h
asInterface(EventNames::WheelEvent) || event->type() == EventTypeNames::blur)) |
| 264 forwardEvent(event); | 264 forwardEvent(event); |
| 265 else if (renderer() && event->isBeforeTextInsertedEvent()) | 265 else if (renderer() && event->isBeforeTextInsertedEvent()) |
| 266 handleBeforeTextInsertedEvent(static_cast<BeforeTextInsertedEvent*>(even
t)); | 266 handleBeforeTextInsertedEvent(static_cast<BeforeTextInsertedEvent*>(even
t)); |
| 267 | 267 |
| 268 HTMLTextFormControlElement::defaultEventHandler(event); | 268 HTMLTextFormControlElement::defaultEventHandler(event); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void HTMLTextAreaElement::handleFocusEvent(Element*, FocusDirection) | 271 void HTMLTextAreaElement::handleFocusEvent(Element*, FocusDirection) |
| 272 { | 272 { |
| 273 if (Frame* frame = document().frame()) | 273 if (Frame* frame = document().frame()) |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 } | 543 } |
| 544 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); | 544 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); |
| 545 } | 545 } |
| 546 | 546 |
| 547 bool HTMLTextAreaElement::isInteractiveContent() const | 547 bool HTMLTextAreaElement::isInteractiveContent() const |
| 548 { | 548 { |
| 549 return true; | 549 return true; |
| 550 } | 550 } |
| 551 | 551 |
| 552 } | 552 } |
| OLD | NEW |