[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
rjw
rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:47:59 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit cc755d91821e15e53bb77705ee5e1b184fda8875
Author: rjw <rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Oct 8 23:27:14 2002 +0000
i Added bridge method set the selection.
* kwq/WebCoreBridge.h:
* kwq/WebCoreBridge.mm:
(-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]):
Added selection API.
* WebView.subproj/WebHTMLRepresentation.h:
* WebView.subproj/WebHTMLRepresentation.m:
(-[WebHTMLRepresentation setSelectionFrom:startOffset:to:endOffset:]):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index 9a35dc7..bc85b68 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,5 +1,13 @@
2002-10-08 Richard Williamson <rjw at apple.com>
+ Added bridge method set the selection.
+
+ * kwq/WebCoreBridge.h:
+ * kwq/WebCoreBridge.mm:
+ (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]):
+
+2002-10-08 Richard Williamson <rjw at apple.com>
+
Added bridge method to get the DOM document.
* kwq/WebCoreBridge.h:
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 9a35dc7..bc85b68 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,5 +1,13 @@
2002-10-08 Richard Williamson <rjw at apple.com>
+ Added bridge method set the selection.
+
+ * kwq/WebCoreBridge.h:
+ * kwq/WebCoreBridge.mm:
+ (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]):
+
+2002-10-08 Richard Williamson <rjw at apple.com>
+
Added bridge method to get the DOM document.
* kwq/WebCoreBridge.h:
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 9a35dc7..bc85b68 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,13 @@
2002-10-08 Richard Williamson <rjw at apple.com>
+ Added bridge method set the selection.
+
+ * kwq/WebCoreBridge.h:
+ * kwq/WebCoreBridge.mm:
+ (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]):
+
+2002-10-08 Richard Williamson <rjw at apple.com>
+
Added bridge method to get the DOM document.
* kwq/WebCoreBridge.h:
diff --git a/WebCore/kwq/WebCoreBridge.h b/WebCore/kwq/WebCoreBridge.h
index 2034b3d..f7df692 100644
--- a/WebCore/kwq/WebCoreBridge.h
+++ b/WebCore/kwq/WebCoreBridge.h
@@ -53,6 +53,7 @@ typedef khtml::RenderPart KHTMLRenderPart;
@protocol WebCoreResourceHandle;
@protocol WebCoreResourceLoader;
@protocol WebDOMDocument;
+ at protocol WebDOMNode;
#define WebCoreElementLinkURL @"WebCoreElementLinkURL"
#define WebCoreElementLinkTarget @"WebCoreElementLinkTarget"
@@ -137,6 +138,8 @@ typedef khtml::RenderPart KHTMLRenderPart;
- (id<WebDOMDocument>)DOMDocument;
+- (void)setSelectionFrom:(id<WebDOMNode>)start startOffset:(int)startOffset to:(id<WebDOMNode>)end endOffset:(int) endOffset;
+
@end
// The WebCoreBridge protocol contains methods for use by the WebCore side of the bridge.
diff --git a/WebCore/kwq/WebCoreBridge.mm b/WebCore/kwq/WebCoreBridge.mm
index 3978fa1..fa30150 100644
--- a/WebCore/kwq/WebCoreBridge.mm
+++ b/WebCore/kwq/WebCoreBridge.mm
@@ -547,5 +547,11 @@ using khtml::RenderPart;
return [WebCoreDOMDocument documentWithImpl:doc];
}
+- (void)setSelectionFrom:(id<WebDOMNode>)start startOffset:(int)startOffset to:(id<WebDOMNode>)end endOffset:(int) endOffset
+{
+ DocumentImpl *doc = part->impl->document();
+
+ doc->setSelection ([(WebCoreDOMNode *)start impl], startOffset, [(WebCoreDOMNode *)end impl], endOffset);
+}
@end
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 61e61ec..7fb0ade 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,5 +1,13 @@
2002-10-08 Richard Williamson <rjw at apple.com>
+ Added selection API.
+
+ * WebView.subproj/WebHTMLRepresentation.h:
+ * WebView.subproj/WebHTMLRepresentation.m:
+ (-[WebHTMLRepresentation setSelectionFrom:startOffset:to:endOffset:]):
+
+2002-10-08 Richard Williamson <rjw at apple.com>
+
Add accessor for DOM document.
* WebKit.pbproj/project.pbxproj:
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index 61e61ec..7fb0ade 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,5 +1,13 @@
2002-10-08 Richard Williamson <rjw at apple.com>
+ Added selection API.
+
+ * WebView.subproj/WebHTMLRepresentation.h:
+ * WebView.subproj/WebHTMLRepresentation.m:
+ (-[WebHTMLRepresentation setSelectionFrom:startOffset:to:endOffset:]):
+
+2002-10-08 Richard Williamson <rjw at apple.com>
+
Add accessor for DOM document.
* WebKit.pbproj/project.pbxproj:
diff --git a/WebKit/WebView.subproj/WebHTMLRepresentation.h b/WebKit/WebView.subproj/WebHTMLRepresentation.h
index cec2b0d..2d1dd92 100644
--- a/WebKit/WebView.subproj/WebHTMLRepresentation.h
+++ b/WebKit/WebView.subproj/WebHTMLRepresentation.h
@@ -11,6 +11,7 @@
@protocol WebDocumentRepresentation;
@protocol WebDOMDocument;
+ at protocol WebDOMNode;
/*!
@class WebHTMLRepresentation
@@ -33,11 +34,22 @@
- (id<WebDOMDocument>)DOMDocument;
/*!
+ @method setSelectionFrom:startOffset:to:endOffset
+ @abstract Set the text selection in the document.
+ @param start The node that include the starting selection point.
+ @param startOffset The character offset into the text of the starting node.
+ @param end The node that includes the ending selection point.
+ @param endOffset The character offset into the text of the ending node.
+*/
+- (void)setSelectionFrom:(id<WebDOMNode>)start startOffset:(int)startOffset to:(id<WebDOMNode>)end endOffset:(int) endOffset;
+
+/*!
@method documentSource
@abstract Get the current HTML reconstructed from the current state of the DOM.
*/
- (NSString *)reconstructedDocumentSource;
+
/*!
@method attributedText
@discussion Return the document source as an attributed string.
diff --git a/WebKit/WebView.subproj/WebHTMLRepresentation.m b/WebKit/WebView.subproj/WebHTMLRepresentation.m
index fd3e084..2e32eb4 100644
--- a/WebKit/WebView.subproj/WebHTMLRepresentation.m
+++ b/WebKit/WebView.subproj/WebHTMLRepresentation.m
@@ -79,6 +79,10 @@
return [_private->bridge DOMDocument];
}
+- (void)setSelectionFrom:(id<WebDOMNode>)start startOffset:(int)startOffset to:(id<WebDOMNode>)end endOffset:(int) endOffset
+{
+}
+
- (NSString *)reconstructedDocumentSource
{
// FIXME implement
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list