Skip to content
  • rniwa@webkit.org's avatar
    Turn forbidEventDispatch and allowEventDispatch into a RAII object · 3f29758a
    rniwa@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=96717
    
    Reviewed by Abhishek Arya.
    
    Replaced forbidEventDispatch and allowEventDispatch by AssertNoEventDispatch.
    
    * dom/ContainerNode.cpp:
    (WebCore):
    (WebCore::ContainerNode::insertBeforeCommon):
    (WebCore::ContainerNode::replaceChild):
    (WebCore::ContainerNode::removeBetween):
    (WebCore::ContainerNode::removeChildren):
    (WebCore::ContainerNode::appendChild):
    (WebCore::ContainerNode::parserAddChild):
    (WebCore::dispatchChildInsertionEvents):
    (WebCore::dispatchChildRemovalEvents):
    * dom/ContainerNode.h:
    (AssertNoEventDispatch):
    (WebCore::AssertNoEventDispatch::AssertNoEventDispatch):
    (WebCore::AssertNoEventDispatch::~AssertNoEventDispatch):
    (WebCore::AssertNoEventDispatch::isEventDispatchForbidden):
    (WebCore):
    * dom/ContainerNodeAlgorithms.h:
    (WebCore::ChildNodeInsertionNotifier::notifyNodeInsertedIntoTree):
    (WebCore::ChildNodeInsertionNotifier::notify):
    (WebCore::ChildNodeRemovalNotifier::notifyNodeRemovedFromTree):
    * dom/Document.cpp:
    (WebCore::Document::dispatchWindowEvent):
    (WebCore::Document::dispatchWindowLoadEvent):
    * dom/EventDispatcher.cpp:
    (WebCore::EventDispatcher::dispatchEvent):
    * dom/EventTarget.cpp:
    (WebCore):
    (WebCore::EventTarget::fireEventListeners):
    * dom/EventTarget.h:
    (WebCore):
    * dom/Node.cpp:
    (WebCore::Node::dispatchSubtreeModifiedEvent):
    (WebCore::Node::dispatchFocusInEvent):
    (WebCore::Node::dispatchFocusOutEvent):
    (WebCore::Node::dispatchDOMActivateEvent):
    * dom/WebKitNamedFlow.cpp:
    (WebCore::WebKitNamedFlow::dispatchRegionLayoutUpdateEvent):
    * html/HTMLMediaElement.cpp:
    (WebCore::HTMLMediaElement::loadInternal):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3f29758a