Rolling out a change I included by accident in my last commit.
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Aug 2006 18:56:12 +0000 (18:56 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Aug 2006 18:56:12 +0000 (18:56 +0000)
        * bridge/mac/FrameMac.mm:
        (WebCore::FrameMac::passMouseDownEventToWidget):
        * platform/mac/SharedTimerMac.cpp:
        (WebCore::setSharedTimerFireTime):

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

WebCore/ChangeLog
WebCore/bridge/mac/FrameMac.mm
WebCore/platform/mac/SharedTimerMac.cpp

index e28a832..ef076b5 100644 (file)
@@ -1,3 +1,12 @@
+2006-08-29  Geoffrey Garen  <ggaren@apple.com>
+
+        Rolling out a change I included by accident in my last commit.
+        
+        * bridge/mac/FrameMac.mm:
+        (WebCore::FrameMac::passMouseDownEventToWidget):
+        * platform/mac/SharedTimerMac.cpp:
+        (WebCore::setSharedTimerFireTime):
+
 2006-08-28  Geoffrey Garen  <ggaren@apple.com>
 
         Reviewed by Maciej.
index 86ad2ac..81f83c0 100644 (file)
@@ -1505,12 +1505,17 @@ bool FrameMac::passMouseDownEventToWidget(Widget* widget)
     BOOL wasDeferringLoading = [_bridge defersLoading];
     if (!wasDeferringLoading)
         [_bridge setDefersLoading:YES];
+    BOOL wasDeferringTimers = isDeferringTimers();
+    if (!wasDeferringTimers)
+        setDeferringTimers(true);
 
     ASSERT(!_sendingEventToSubview);
     _sendingEventToSubview = true;
     [view mouseDown:_currentEvent];
     _sendingEventToSubview = false;
     
+    if (!wasDeferringTimers)
+        setDeferringTimers(false);
     if (!wasDeferringLoading)
         [_bridge setDefersLoading:NO];
 
index 1349ea2..4b5f21a 100644 (file)
@@ -57,7 +57,7 @@ void setSharedTimerFireTime(double fireTime)
 
     CFAbsoluteTime fireDate = fireTime - kCFAbsoluteTimeIntervalSince1970;
     sharedTimer = CFRunLoopTimerCreate(0, fireDate, 0, 0, 0, timerFired, 0);
-    CFRunLoopAddTimer(CFRunLoopGetCurrent(), sharedTimer, kCFRunLoopCommonModes);
+    CFRunLoopAddTimer(CFRunLoopGetCurrent(), sharedTimer, kCFRunLoopDefaultMode);
 }
 
 void stopSharedTimer()