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, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
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 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2471 return !beforeLoadEvent->defaultPrevented(); | 2471 return !beforeLoadEvent->defaultPrevented(); |
2472 } | 2472 } |
2473 | 2473 |
2474 bool Node::dispatchWheelEvent(const PlatformWheelEvent& event) | 2474 bool Node::dispatchWheelEvent(const PlatformWheelEvent& event) |
2475 { | 2475 { |
2476 return EventDispatcher::dispatchEvent(this, WheelEventDispatchMediator::crea
te(event, document()->defaultView())); | 2476 return EventDispatcher::dispatchEvent(this, WheelEventDispatchMediator::crea
te(event, document()->defaultView())); |
2477 } | 2477 } |
2478 | 2478 |
2479 void Node::dispatchChangeEvent() | 2479 void Node::dispatchChangeEvent() |
2480 { | 2480 { |
2481 dispatchScopedEvent(Event::create(eventNames().changeEvent, true, false)); | 2481 dispatchScopedEvent(Event::createBubble(eventNames().changeEvent)); |
2482 } | 2482 } |
2483 | 2483 |
2484 void Node::dispatchInputEvent() | 2484 void Node::dispatchInputEvent() |
2485 { | 2485 { |
2486 dispatchScopedEvent(Event::create(eventNames().inputEvent, true, false)); | 2486 dispatchScopedEvent(Event::createBubble(eventNames().inputEvent)); |
2487 } | 2487 } |
2488 | 2488 |
2489 void Node::defaultEventHandler(Event* event) | 2489 void Node::defaultEventHandler(Event* event) |
2490 { | 2490 { |
2491 if (event->target() != this) | 2491 if (event->target() != this) |
2492 return; | 2492 return; |
2493 const AtomicString& eventType = event->type(); | 2493 const AtomicString& eventType = event->type(); |
2494 if (eventType == eventNames().keydownEvent || eventType == eventNames().keyp
ressEvent) { | 2494 if (eventType == eventNames().keydownEvent || eventType == eventNames().keyp
ressEvent) { |
2495 if (event->isKeyboardEvent()) { | 2495 if (event->isKeyboardEvent()) { |
2496 if (Frame* frame = document()->frame()) | 2496 if (Frame* frame = document()->frame()) |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2773 node->showTreeForThis(); | 2773 node->showTreeForThis(); |
2774 } | 2774 } |
2775 | 2775 |
2776 void showNodePath(const WebCore::Node* node) | 2776 void showNodePath(const WebCore::Node* node) |
2777 { | 2777 { |
2778 if (node) | 2778 if (node) |
2779 node->showNodePathForThis(); | 2779 node->showNodePathForThis(); |
2780 } | 2780 } |
2781 | 2781 |
2782 #endif | 2782 #endif |
OLD | NEW |