Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: Source/core/dom/Element.cpp

Issue 446063007: Rename NoEventDispatchAssertion to EventDispatchForbiddenScope and move it to platform/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/NoEventDispatchAssertion.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "core/dom/ClientRectList.h" 50 #include "core/dom/ClientRectList.h"
51 #include "core/dom/DatasetDOMStringMap.h" 51 #include "core/dom/DatasetDOMStringMap.h"
52 #include "core/dom/ElementDataCache.h" 52 #include "core/dom/ElementDataCache.h"
53 #include "core/dom/ElementRareData.h" 53 #include "core/dom/ElementRareData.h"
54 #include "core/dom/ElementTraversal.h" 54 #include "core/dom/ElementTraversal.h"
55 #include "core/dom/ExceptionCode.h" 55 #include "core/dom/ExceptionCode.h"
56 #include "core/dom/FullscreenElementStack.h" 56 #include "core/dom/FullscreenElementStack.h"
57 #include "core/dom/MutationObserverInterestGroup.h" 57 #include "core/dom/MutationObserverInterestGroup.h"
58 #include "core/dom/MutationRecord.h" 58 #include "core/dom/MutationRecord.h"
59 #include "core/dom/NamedNodeMap.h" 59 #include "core/dom/NamedNodeMap.h"
60 #include "core/dom/NoEventDispatchAssertion.h"
61 #include "core/dom/NodeRenderStyle.h" 60 #include "core/dom/NodeRenderStyle.h"
62 #include "core/dom/PresentationAttributeStyle.h" 61 #include "core/dom/PresentationAttributeStyle.h"
63 #include "core/dom/PseudoElement.h" 62 #include "core/dom/PseudoElement.h"
64 #include "core/dom/RenderTreeBuilder.h" 63 #include "core/dom/RenderTreeBuilder.h"
65 #include "core/dom/ScriptableDocumentParser.h" 64 #include "core/dom/ScriptableDocumentParser.h"
66 #include "core/dom/SelectorQuery.h" 65 #include "core/dom/SelectorQuery.h"
67 #include "core/dom/StyleEngine.h" 66 #include "core/dom/StyleEngine.h"
68 #include "core/dom/Text.h" 67 #include "core/dom/Text.h"
69 #include "core/dom/custom/CustomElement.h" 68 #include "core/dom/custom/CustomElement.h"
70 #include "core/dom/custom/CustomElementRegistrationContext.h" 69 #include "core/dom/custom/CustomElementRegistrationContext.h"
(...skipping 27 matching lines...) Expand all
98 #include "core/page/Chrome.h" 97 #include "core/page/Chrome.h"
99 #include "core/page/ChromeClient.h" 98 #include "core/page/ChromeClient.h"
100 #include "core/page/FocusController.h" 99 #include "core/page/FocusController.h"
101 #include "core/page/Page.h" 100 #include "core/page/Page.h"
102 #include "core/page/PointerLockController.h" 101 #include "core/page/PointerLockController.h"
103 #include "core/rendering/RenderLayer.h" 102 #include "core/rendering/RenderLayer.h"
104 #include "core/rendering/RenderView.h" 103 #include "core/rendering/RenderView.h"
105 #include "core/rendering/compositing/RenderLayerCompositor.h" 104 #include "core/rendering/compositing/RenderLayerCompositor.h"
106 #include "core/svg/SVGDocumentExtensions.h" 105 #include "core/svg/SVGDocumentExtensions.h"
107 #include "core/svg/SVGElement.h" 106 #include "core/svg/SVGElement.h"
107 #include "platform/EventDispatchForbiddenScope.h"
108 #include "platform/RuntimeEnabledFeatures.h" 108 #include "platform/RuntimeEnabledFeatures.h"
109 #include "platform/UserGestureIndicator.h" 109 #include "platform/UserGestureIndicator.h"
110 #include "platform/scroll/ScrollableArea.h" 110 #include "platform/scroll/ScrollableArea.h"
111 #include "wtf/BitVector.h" 111 #include "wtf/BitVector.h"
112 #include "wtf/HashFunctions.h" 112 #include "wtf/HashFunctions.h"
113 #include "wtf/text/CString.h" 113 #include "wtf/text/CString.h"
114 #include "wtf/text/StringBuilder.h" 114 #include "wtf/text/StringBuilder.h"
115 #include "wtf/text/TextPosition.h" 115 #include "wtf/text/TextPosition.h"
116 116
117 namespace blink { 117 namespace blink {
(...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after
2168 } 2168 }
2169 2169
2170 void Element::dispatchBlurEvent(Element* newFocusedElement) 2170 void Element::dispatchBlurEvent(Element* newFocusedElement)
2171 { 2171 {
2172 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::bl ur, false, false, document().domWindow(), 0, newFocusedElement); 2172 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::bl ur, false, false, document().domWindow(), 0, newFocusedElement);
2173 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event .release())); 2173 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event .release()));
2174 } 2174 }
2175 2175
2176 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo cusedElement) 2176 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo cusedElement)
2177 { 2177 {
2178 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); 2178 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden());
2179 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames:: DOMFocusIn); 2179 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames:: DOMFocusIn);
2180 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle ment))); 2180 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle ment)));
2181 } 2181 }
2182 2182
2183 void Element::dispatchFocusOutEvent(const AtomicString& eventType, Element* newF ocusedElement) 2183 void Element::dispatchFocusOutEvent(const AtomicString& eventType, Element* newF ocusedElement)
2184 { 2184 {
2185 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); 2185 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden());
2186 ASSERT(eventType == EventTypeNames::focusout || eventType == EventTypeNames: :DOMFocusOut); 2186 ASSERT(eventType == EventTypeNames::focusout || eventType == EventTypeNames: :DOMFocusOut);
2187 dispatchScopedEventDispatchMediator(FocusOutEventDispatchMediator::create(Fo cusEvent::create(eventType, true, false, document().domWindow(), 0, newFocusedEl ement))); 2187 dispatchScopedEventDispatchMediator(FocusOutEventDispatchMediator::create(Fo cusEvent::create(eventType, true, false, document().domWindow(), 0, newFocusedEl ement)));
2188 } 2188 }
2189 2189
2190 String Element::innerHTML() const 2190 String Element::innerHTML() const
2191 { 2191 {
2192 return createMarkup(this, ChildrenOnly); 2192 return createMarkup(this, ChildrenOnly);
2193 } 2193 }
2194 2194
2195 String Element::outerHTML() const 2195 String Element::outerHTML() const
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
3260 { 3260 {
3261 #if ENABLE(OILPAN) 3261 #if ENABLE(OILPAN)
3262 if (hasRareData()) 3262 if (hasRareData())
3263 visitor->trace(elementRareData()); 3263 visitor->trace(elementRareData());
3264 visitor->trace(m_elementData); 3264 visitor->trace(m_elementData);
3265 #endif 3265 #endif
3266 ContainerNode::trace(visitor); 3266 ContainerNode::trace(visitor);
3267 } 3267 }
3268 3268
3269 } // namespace blink 3269 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/NoEventDispatchAssertion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698