[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

cblu cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:38:13 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 3d4c1b3e6d994f2ec0da09644a91d0d56537900b
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Apr 23 20:36:50 2003 +0000

    	Fixed: 3161374 - safari windows don't allow text/URL dragging on the first click
    
            Reviewed by john.
    
            * WebView.subproj/WebHTMLView.m:
            (-[WebHTMLView _isSelectionEvent:]): new, determines if the event occurred over the selection
            (-[WebHTMLView acceptsFirstMouse:]): newly implemented, return result of _isSelectionEvent:
            (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): newly implemented, return result of _isSelectionEvent:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4162 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index d73aca6..c87e1d2 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,5 +1,16 @@
 2003-04-23  Chris Blumenberg  <cblu at apple.com>
 
+	Fixed: 3161374 - safari windows don't allow text/URL dragging on the first click
+
+        Reviewed by john.
+
+        * WebView.subproj/WebHTMLView.m:
+        (-[WebHTMLView _isSelectionEvent:]): new, determines if the event occurred over the selection
+        (-[WebHTMLView acceptsFirstMouse:]): newly implemented, return result of _isSelectionEvent:
+        (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): newly implemented, return result of _isSelectionEvent:
+
+2003-04-23  Chris Blumenberg  <cblu at apple.com>
+
 	Renamed the policy delegate methods.
 
         Reviewed by john.
diff --git a/WebKit/WebView.subproj/WebHTMLView.m b/WebKit/WebView.subproj/WebHTMLView.m
index f016b44..4078a16 100644
--- a/WebKit/WebView.subproj/WebHTMLView.m
+++ b/WebKit/WebView.subproj/WebHTMLView.m
@@ -609,7 +609,23 @@
     [[self _pluginController] destroyAllPlugins];
 }
 
-- (void)mouseDown: (NSEvent *)event
+- (BOOL)_isSelectionEvent:(NSEvent *)event
+{
+    NSPoint point = [self convertPoint:[event locationInWindow] fromView:nil];
+    return [[[self _elementAtPoint:point] objectForKey:WebElementIsSelectedTextKey] boolValue];
+}
+
+- (BOOL)acceptsFirstMouse:(NSEvent *)event
+{
+    return [self _isSelectionEvent:event];
+}
+
+- (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)event
+{
+    return [self _isSelectionEvent:event];
+}
+
+- (void)mouseDown:(NSEvent *)event
 {
     _private->ignoringMouseDraggedEvents = NO;
     

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list