Unreviewed gardening; fix bindings tests after r148700.
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Apr 2013 23:57:20 +0000 (23:57 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Apr 2013 23:57:20 +0000 (23:57 +0000)
* bindings/scripts/test/JS/JSTestEventTarget.cpp:
(WebCore::JSTestEventTargetOwner::isReachableFromOpaqueRoots):

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

Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp

index 3dfb797..8915f82 100644 (file)
@@ -1,3 +1,10 @@
+2013-04-18  Jer Noble  <jer.noble@apple.com>
+
+        Unreviewed gardening; fix bindings tests after r148700.
+
+        * bindings/scripts/test/JS/JSTestEventTarget.cpp:
+        (WebCore::JSTestEventTargetOwner::isReachableFromOpaqueRoots):
+
 2013-04-18  Andy Estes  <aestes@apple.com>
 
         REGRESSION (r116645): Versions app's UI is munged in HiDPI due to background-size being reset to 'auto' when background short-hand is also specified
index 0c2d9d9..7e05a5c 100644 (file)
@@ -326,6 +326,8 @@ static inline bool isObservable(JSTestEventTarget* jsTestEventTarget)
 bool JSTestEventTargetOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor)
 {
     JSTestEventTarget* jsTestEventTarget = jsCast<JSTestEventTarget*>(handle.get().asCell());
+    if (jsTestEventTarget->impl()->isFiringEventListeners())
+        return true;
     if (!isObservable(jsTestEventTarget))
         return false;
     UNUSED_PARAM(visitor);