Reviewed by Maciej.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Mar 2005 01:32:55 +0000 (01:32 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Mar 2005 01:32:55 +0000 (01:32 +0000)
        <rdar://problem/4048506> Deleting from beginning of editable div deletes other document elements

        Also changed WebCore.

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _shouldDeleteRange:]):
        Added call to new bridge method canDeleteRange.

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

WebKit/ChangeLog
WebKit/WebView.subproj/WebHTMLView.m

index 059508e27cdad2d1a9908d13b3eda403b60e31a2..627998a341b36331d9489ded3c63ca9ec17bdd89 100644 (file)
@@ -1,3 +1,15 @@
+2005-03-16  David Harrison  <harrison@apple.com>
+
+        Reviewed by Maciej.
+        
+        <rdar://problem/4048506> Deleting from beginning of editable div deletes other document elements
+        
+        Also changed WebCore.
+
+        * WebView.subproj/WebHTMLView.m:
+        (-[WebHTMLView _shouldDeleteRange:]):
+        Added call to new bridge method canDeleteRange.
+
 2005-03-16  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by Darin
index 897be98e9f66a464602d65dc569bebd205c5660d..3f30728d481f07433f42d67163573402c965bd16 100644 (file)
@@ -484,6 +484,10 @@ void *_NSSoftLinkingGetFrameworkFuncPtr(NSString *inUmbrellaFrameworkName,
 {
     if (range == nil || [range collapsed])
         return NO;
+    
+    if (![[self _bridge] canDeleteRange:range])
+        return NO;
+        
     WebView *webView = [self _webView];
     return [[webView _editingDelegateForwarder] webView:webView shouldDeleteDOMRange:range];
 }