| 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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * | 10 * |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 #include "core/events/PointerEvent.h" | 81 #include "core/events/PointerEvent.h" |
| 82 #include "core/events/PointerEventFactory.h" | 82 #include "core/events/PointerEventFactory.h" |
| 83 #include "core/events/TextEvent.h" | 83 #include "core/events/TextEvent.h" |
| 84 #include "core/events/TouchEvent.h" | 84 #include "core/events/TouchEvent.h" |
| 85 #include "core/events/UIEvent.h" | 85 #include "core/events/UIEvent.h" |
| 86 #include "core/events/WheelEvent.h" | 86 #include "core/events/WheelEvent.h" |
| 87 #include "core/frame/EventHandlerRegistry.h" | 87 #include "core/frame/EventHandlerRegistry.h" |
| 88 #include "core/frame/FrameView.h" | 88 #include "core/frame/FrameView.h" |
| 89 #include "core/frame/LocalDOMWindow.h" | 89 #include "core/frame/LocalDOMWindow.h" |
| 90 #include "core/frame/LocalFrame.h" | 90 #include "core/frame/LocalFrame.h" |
| 91 #include "core/frame/UseCounter.h" |
| 91 #include "core/html/HTMLDialogElement.h" | 92 #include "core/html/HTMLDialogElement.h" |
| 92 #include "core/html/HTMLFrameOwnerElement.h" | 93 #include "core/html/HTMLFrameOwnerElement.h" |
| 93 #include "core/html/HTMLSlotElement.h" | 94 #include "core/html/HTMLSlotElement.h" |
| 94 #include "core/input/EventHandler.h" | 95 #include "core/input/EventHandler.h" |
| 95 #include "core/layout/LayoutBox.h" | 96 #include "core/layout/LayoutBox.h" |
| 96 #include "core/page/ContextMenuController.h" | 97 #include "core/page/ContextMenuController.h" |
| 97 #include "core/page/Page.h" | 98 #include "core/page/Page.h" |
| 98 #include "core/svg/SVGElement.h" | 99 #include "core/svg/SVGElement.h" |
| 99 #include "core/svg/graphics/SVGImage.h" | 100 #include "core/svg/graphics/SVGImage.h" |
| 100 #include "platform/EventDispatchForbiddenScope.h" | 101 #include "platform/EventDispatchForbiddenScope.h" |
| (...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2091 for (auto& registration : *transient_registry) | 2092 for (auto& registration : *transient_registry) |
| 2092 registration->ObservedSubtreeNodeWillDetach(*this); | 2093 registration->ObservedSubtreeNodeWillDetach(*this); |
| 2093 } | 2094 } |
| 2094 } | 2095 } |
| 2095 } | 2096 } |
| 2096 | 2097 |
| 2097 void Node::HandleLocalEvents(Event& event) { | 2098 void Node::HandleLocalEvents(Event& event) { |
| 2098 if (!HasEventTargetData()) | 2099 if (!HasEventTargetData()) |
| 2099 return; | 2100 return; |
| 2100 | 2101 |
| 2101 if (IsDisabledFormControl(this) && event.IsMouseEvent()) | 2102 if (IsDisabledFormControl(this) && event.IsMouseEvent()) { |
| 2103 UseCounter::Count(GetDocument(), |
| 2104 UseCounter::kDispatchMouseEventOnDisabledFormControl); |
| 2102 return; | 2105 return; |
| 2106 } |
| 2103 | 2107 |
| 2104 FireEventListeners(&event); | 2108 FireEventListeners(&event); |
| 2105 } | 2109 } |
| 2106 | 2110 |
| 2107 void Node::DispatchScopedEvent(Event* event) { | 2111 void Node::DispatchScopedEvent(Event* event) { |
| 2108 event->SetTrusted(true); | 2112 event->SetTrusted(true); |
| 2109 EventDispatcher::DispatchScopedEvent(*this, event->CreateMediator()); | 2113 EventDispatcher::DispatchScopedEvent(*this, event->CreateMediator()); |
| 2110 } | 2114 } |
| 2111 | 2115 |
| 2112 DispatchEventResult Node::DispatchEventInternal(Event* event) { | 2116 DispatchEventResult Node::DispatchEventInternal(Event* event) { |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2563 if (node) { | 2567 if (node) { |
| 2564 std::stringstream stream; | 2568 std::stringstream stream; |
| 2565 node->PrintNodePathTo(stream); | 2569 node->PrintNodePathTo(stream); |
| 2566 LOG(INFO) << stream.str(); | 2570 LOG(INFO) << stream.str(); |
| 2567 } else { | 2571 } else { |
| 2568 LOG(INFO) << "Cannot showNodePath for <null>"; | 2572 LOG(INFO) << "Cannot showNodePath for <null>"; |
| 2569 } | 2573 } |
| 2570 } | 2574 } |
| 2571 | 2575 |
| 2572 #endif | 2576 #endif |
| OLD | NEW |