Tweak to last check-in.
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Aug 2004 00:38:25 +0000 (00:38 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Aug 2004 00:38:25 +0000 (00:38 +0000)
        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]):

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

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

index e516cab6591bd240635bcb867b43e062e1e0bd74..4f82c3d43bc399befd559b37ac5e179961a524ac 100644 (file)
@@ -1,3 +1,10 @@
+2004-08-26  Chris Blumenberg  <cblu@apple.com>
+
+       Tweak to last check-in.
+
+        * WebView.subproj/WebHTMLView.m:
+        (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]):
+
 2004-08-26  Chris Blumenberg  <cblu@apple.com>
 
        Fixed: 
index 856dce3862342e95652d75a2d27c11cc8cf7e0d5..bfba5055284e8fb2fd0299c8d42b53a786e4618c 100644 (file)
@@ -292,8 +292,8 @@ static WebElementOrTextFilter *elementOrTextFilterInstance = nil;
         return fragment;
     }
     
-    NSAttributedString *string = nil;
     if ([NSAttributedString instancesRespondToSelector:@selector(_documentFromRange:document:documentAttributes:subresources:)]) {
+        NSAttributedString *string = nil;
         if ([types containsObject:NSRTFDPboardType]) {
             string = [[NSAttributedString alloc] initWithRTFD:[pasteboard dataForType:NSRTFDPboardType] documentAttributes:NULL];
         }
@@ -304,9 +304,8 @@ static WebElementOrTextFilter *elementOrTextFilterInstance = nil;
             NSArray *elements = [[NSArray alloc] initWithObjects:@"style", nil];
             NSDictionary *documentAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:elements, NSExcludedElementsDocumentAttribute, nil];
             [elements release];
-            NSRange range = NSMakeRange(0, [string length]);
             NSArray *subresources;
-            DOMDocumentFragment *fragment = [string _documentFromRange:range 
+            DOMDocumentFragment *fragment = [string _documentFromRange:NSMakeRange(0, [string length]) 
                                                               document:[[self _bridge] DOMDocument] 
                                                     documentAttributes:documentAttributes
                                                           subresources:&subresources];