| 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 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2092 for (auto& registration : *transient_registry) | 2092 for (auto& registration : *transient_registry) |
| 2093 registration->ObservedSubtreeNodeWillDetach(*this); | 2093 registration->ObservedSubtreeNodeWillDetach(*this); |
| 2094 } | 2094 } |
| 2095 } | 2095 } |
| 2096 } | 2096 } |
| 2097 | 2097 |
| 2098 void Node::HandleLocalEvents(Event& event) { | 2098 void Node::HandleLocalEvents(Event& event) { |
| 2099 if (!HasEventTargetData()) | 2099 if (!HasEventTargetData()) |
| 2100 return; | 2100 return; |
| 2101 | 2101 |
| 2102 if (IsDisabledFormControl(this) && event.IsMouseEvent()) { | 2102 if (IsDisabledFormControl(this) && event.IsMouseEvent() && |
| 2103 !RuntimeEnabledFeatures::sendMouseEventsDisabledFormControlsEnabled()) { |
| 2103 UseCounter::Count(GetDocument(), | 2104 UseCounter::Count(GetDocument(), |
| 2104 UseCounter::kDispatchMouseEventOnDisabledFormControl); | 2105 UseCounter::kDispatchMouseEventOnDisabledFormControl); |
| 2105 return; | 2106 return; |
| 2106 } | 2107 } |
| 2107 | 2108 |
| 2108 FireEventListeners(&event); | 2109 FireEventListeners(&event); |
| 2109 } | 2110 } |
| 2110 | 2111 |
| 2111 void Node::DispatchScopedEvent(Event* event) { | 2112 void Node::DispatchScopedEvent(Event* event) { |
| 2112 event->SetTrusted(true); | 2113 event->SetTrusted(true); |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 if (node) { | 2568 if (node) { |
| 2568 std::stringstream stream; | 2569 std::stringstream stream; |
| 2569 node->PrintNodePathTo(stream); | 2570 node->PrintNodePathTo(stream); |
| 2570 LOG(INFO) << stream.str(); | 2571 LOG(INFO) << stream.str(); |
| 2571 } else { | 2572 } else { |
| 2572 LOG(INFO) << "Cannot showNodePath for <null>"; | 2573 LOG(INFO) << "Cannot showNodePath for <null>"; |
| 2573 } | 2574 } |
| 2574 } | 2575 } |
| 2575 | 2576 |
| 2576 #endif | 2577 #endif |
| OLD | NEW |