| 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 27 matching lines...) Expand all Loading... |
| 38 #include "core/dom/DOMImplementation.h" | 38 #include "core/dom/DOMImplementation.h" |
| 39 #include "core/dom/Document.h" | 39 #include "core/dom/Document.h" |
| 40 #include "core/dom/DocumentFragment.h" | 40 #include "core/dom/DocumentFragment.h" |
| 41 #include "core/dom/DocumentMarkerController.h" | 41 #include "core/dom/DocumentMarkerController.h" |
| 42 #include "core/dom/DocumentType.h" | 42 #include "core/dom/DocumentType.h" |
| 43 #include "core/dom/Element.h" | 43 #include "core/dom/Element.h" |
| 44 #include "core/dom/ElementRareData.h" | 44 #include "core/dom/ElementRareData.h" |
| 45 #include "core/dom/ElementTraversal.h" | 45 #include "core/dom/ElementTraversal.h" |
| 46 #include "core/dom/ExceptionCode.h" | 46 #include "core/dom/ExceptionCode.h" |
| 47 #include "core/dom/LiveNodeList.h" | 47 #include "core/dom/LiveNodeList.h" |
| 48 #include "core/dom/NoEventDispatchAssertion.h" | |
| 49 #include "core/dom/NodeRareData.h" | 48 #include "core/dom/NodeRareData.h" |
| 50 #include "core/dom/NodeRenderingTraversal.h" | 49 #include "core/dom/NodeRenderingTraversal.h" |
| 51 #include "core/dom/NodeTraversal.h" | 50 #include "core/dom/NodeTraversal.h" |
| 52 #include "core/dom/ProcessingInstruction.h" | 51 #include "core/dom/ProcessingInstruction.h" |
| 53 #include "core/dom/Range.h" | 52 #include "core/dom/Range.h" |
| 54 #include "core/dom/StaticNodeList.h" | 53 #include "core/dom/StaticNodeList.h" |
| 55 #include "core/dom/TemplateContentDocumentFragment.h" | 54 #include "core/dom/TemplateContentDocumentFragment.h" |
| 56 #include "core/dom/Text.h" | 55 #include "core/dom/Text.h" |
| 57 #include "core/dom/TreeScopeAdopter.h" | 56 #include "core/dom/TreeScopeAdopter.h" |
| 58 #include "core/dom/UserActionElementSet.h" | 57 #include "core/dom/UserActionElementSet.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 80 #include "core/html/HTMLDialogElement.h" | 79 #include "core/html/HTMLDialogElement.h" |
| 81 #include "core/html/HTMLFrameOwnerElement.h" | 80 #include "core/html/HTMLFrameOwnerElement.h" |
| 82 #include "core/html/HTMLStyleElement.h" | 81 #include "core/html/HTMLStyleElement.h" |
| 83 #include "core/page/ContextMenuController.h" | 82 #include "core/page/ContextMenuController.h" |
| 84 #include "core/page/EventHandler.h" | 83 #include "core/page/EventHandler.h" |
| 85 #include "core/page/Page.h" | 84 #include "core/page/Page.h" |
| 86 #include "core/frame/Settings.h" | 85 #include "core/frame/Settings.h" |
| 87 #include "core/rendering/FlowThreadController.h" | 86 #include "core/rendering/FlowThreadController.h" |
| 88 #include "core/rendering/RenderBox.h" | 87 #include "core/rendering/RenderBox.h" |
| 89 #include "core/svg/graphics/SVGImage.h" | 88 #include "core/svg/graphics/SVGImage.h" |
| 89 #include "platform/EventDispatchForbiddenScope.h" |
| 90 #include "platform/Partitions.h" | 90 #include "platform/Partitions.h" |
| 91 #include "platform/TraceEvent.h" | 91 #include "platform/TraceEvent.h" |
| 92 #include "platform/TracedValue.h" | 92 #include "platform/TracedValue.h" |
| 93 #include "wtf/HashSet.h" | 93 #include "wtf/HashSet.h" |
| 94 #include "wtf/PassOwnPtr.h" | 94 #include "wtf/PassOwnPtr.h" |
| 95 #include "wtf/RefCountedLeakCounter.h" | 95 #include "wtf/RefCountedLeakCounter.h" |
| 96 #include "wtf/Vector.h" | 96 #include "wtf/Vector.h" |
| 97 #include "wtf/text/CString.h" | 97 #include "wtf/text/CString.h" |
| 98 #include "wtf/text/StringBuilder.h" | 98 #include "wtf/text/StringBuilder.h" |
| 99 | 99 |
| (...skipping 2025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2125 if (event->isTouchEvent()) | 2125 if (event->isTouchEvent()) |
| 2126 return dispatchTouchEvent(static_pointer_cast<TouchEvent>(event)); | 2126 return dispatchTouchEvent(static_pointer_cast<TouchEvent>(event)); |
| 2127 return EventDispatcher::dispatchEvent(this, EventDispatchMediator::create(ev
ent)); | 2127 return EventDispatcher::dispatchEvent(this, EventDispatchMediator::create(ev
ent)); |
| 2128 } | 2128 } |
| 2129 | 2129 |
| 2130 void Node::dispatchSubtreeModifiedEvent() | 2130 void Node::dispatchSubtreeModifiedEvent() |
| 2131 { | 2131 { |
| 2132 if (isInShadowTree()) | 2132 if (isInShadowTree()) |
| 2133 return; | 2133 return; |
| 2134 | 2134 |
| 2135 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); | 2135 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| 2136 | 2136 |
| 2137 if (!document().hasListenerType(Document::DOMSUBTREEMODIFIED_LISTENER)) | 2137 if (!document().hasListenerType(Document::DOMSUBTREEMODIFIED_LISTENER)) |
| 2138 return; | 2138 return; |
| 2139 | 2139 |
| 2140 dispatchScopedEvent(MutationEvent::create(EventTypeNames::DOMSubtreeModified
, true)); | 2140 dispatchScopedEvent(MutationEvent::create(EventTypeNames::DOMSubtreeModified
, true)); |
| 2141 } | 2141 } |
| 2142 | 2142 |
| 2143 bool Node::dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> un
derlyingEvent) | 2143 bool Node::dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> un
derlyingEvent) |
| 2144 { | 2144 { |
| 2145 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); | 2145 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| 2146 RefPtrWillBeRawPtr<UIEvent> event = UIEvent::create(EventTypeNames::DOMActiv
ate, true, true, document().domWindow(), detail); | 2146 RefPtrWillBeRawPtr<UIEvent> event = UIEvent::create(EventTypeNames::DOMActiv
ate, true, true, document().domWindow(), detail); |
| 2147 event->setUnderlyingEvent(underlyingEvent); | 2147 event->setUnderlyingEvent(underlyingEvent); |
| 2148 dispatchScopedEvent(event); | 2148 dispatchScopedEvent(event); |
| 2149 return event->defaultHandled(); | 2149 return event->defaultHandled(); |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 bool Node::dispatchKeyEvent(const PlatformKeyboardEvent& event) | 2152 bool Node::dispatchKeyEvent(const PlatformKeyboardEvent& event) |
| 2153 { | 2153 { |
| 2154 return EventDispatcher::dispatchEvent(this, KeyboardEventDispatchMediator::c
reate(KeyboardEvent::create(event, document().domWindow()))); | 2154 return EventDispatcher::dispatchEvent(this, KeyboardEventDispatchMediator::c
reate(KeyboardEvent::create(event, document().domWindow()))); |
| 2155 } | 2155 } |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2486 node->showTreeForThis(); | 2486 node->showTreeForThis(); |
| 2487 } | 2487 } |
| 2488 | 2488 |
| 2489 void showNodePath(const blink::Node* node) | 2489 void showNodePath(const blink::Node* node) |
| 2490 { | 2490 { |
| 2491 if (node) | 2491 if (node) |
| 2492 node->showNodePathForThis(); | 2492 node->showNodePathForThis(); |
| 2493 } | 2493 } |
| 2494 | 2494 |
| 2495 #endif | 2495 #endif |
| OLD | NEW |