Fix an intermittent hang in RenderedImageFromDOMRange.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Nov 2011 00:12:03 +0000 (00:12 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Nov 2011 00:12:03 +0000 (00:12 +0000)
Reviewed by Anders Carlsson.

* TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
(TestWebKitAPI::Util::run): Made the call to -runMode:beforeDate: return
immediately if there are no sources by passing a date in the distant past.

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

Tools/ChangeLog
Tools/TestWebKitAPI/mac/PlatformUtilitiesMac.mm

index 822bbed22f0bdda9df8a0cb5047a52684ccece05..ceb4beb1ee9dc47af584e2036e4a72b5879434ea 100644 (file)
@@ -1,3 +1,13 @@
+2011-11-02  Dan Bernstein  <mitz@apple.com>
+
+        Fix an intermittent hang in RenderedImageFromDOMRange.
+
+        Reviewed by Anders Carlsson.
+
+        * TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
+        (TestWebKitAPI::Util::run): Made the call to -runMode:beforeDate: return
+        immediately if there are no sources by passing a date in the distant past.
+
 2011-11-02  Adam Roben  <aroben@apple.com>
 
         Add git-add-reviewer
index 3dad03cc18f2b560fa1de91dd3b3d80a28ac1381..aeed195da366c996a877e1eae85b258766bb24bc 100644 (file)
@@ -39,7 +39,7 @@ namespace Util {
 void run(bool* done)
 {
     while (!*done)
-        [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
+        [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantPast]];
 }
 
 void sleep(double seconds)