Unreviewed build fix after http://trac.webkit.org/changeset/124975
authorhayato@chromium.org <hayato@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2012 05:51:32 +0000 (05:51 +0000)
committerhayato@chromium.org <hayato@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2012 05:51:32 +0000 (05:51 +0000)
Remove assertion introduced in r124975.

* dom/EventDispatcher.cpp:
(WebCore::EventDispatcher::EventDispatcher):
(WebCore::EventDispatcher::dispatchEvent):
* dom/EventDispatcher.h:
(EventDispatcher):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@124992 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/EventDispatcher.cpp
Source/WebCore/dom/EventDispatcher.h

index 276a6f9..4667ab1 100644 (file)
@@ -1,3 +1,15 @@
+2012-08-07  Hayato Ito  <hayato@chromium.org>
+
+        Unreviewed build fix after http://trac.webkit.org/changeset/124975
+
+        Remove assertion introduced in r124975.
+
+        * dom/EventDispatcher.cpp:
+        (WebCore::EventDispatcher::EventDispatcher):
+        (WebCore::EventDispatcher::dispatchEvent):
+        * dom/EventDispatcher.h:
+        (EventDispatcher):
+
 2012-08-07  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r124969.
index bc1de96..d62c5f3 100644 (file)
@@ -202,9 +202,6 @@ void EventDispatcher::adjustRelatedTarget(Event* event, PassRefPtr<EventTarget>
 EventDispatcher::EventDispatcher(Node* node)
     : m_node(node)
     , m_ancestorsInitialized(false)
-#ifndef NDEBUG
-    , m_eventDispatched(false)
-#endif
 {
     ASSERT(node);
     m_view = node->document()->view();
@@ -242,10 +239,6 @@ void EventDispatcher::ensureEventAncestors(Event* event)
 
 bool EventDispatcher::dispatchEvent(PassRefPtr<Event> prpEvent)
 {
-#ifndef NDEBUG
-    ASSERT(!m_eventDispatched);
-    m_eventDispatched = true;
-#endif
     RefPtr<Event> event = prpEvent;
     ChildNodesLazySnapshot::takeChildNodesLazySnapshot();
 
index 5bfead0..14e28c1 100644 (file)
@@ -96,9 +96,6 @@ private:
     RefPtr<Node> m_node;
     RefPtr<FrameView> m_view;
     bool m_ancestorsInitialized;
-#ifndef NDEBUG
-    bool m_eventDispatched;
-#endif
 };
 
 inline Node* EventDispatcher::node() const