WebCore:
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 May 2004 22:27:09 +0000 (22:27 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 May 2004 22:27:09 +0000 (22:27 +0000)
        Removed _bindObject:forFrame: SPI.

        Reviewed by Chris.

        * kwq/KWQKHTMLPart.h:
        * kwq/KWQKHTMLPart.mm:
        * kwq/WebCoreBridge.h:
        * kwq/WebCoreBridge.mm:

WebKit:
        Removed _bindObject:forFrame: SPI.

        Reviewed by Chris.

        * WebView.subproj/WebView.m:
        * WebView.subproj/WebViewPrivate.h:

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

WebCore/ChangeLog-2005-08-23
WebCore/kwq/KWQKHTMLPart.h
WebCore/kwq/KWQKHTMLPart.mm
WebCore/kwq/WebCoreBridge.h
WebCore/kwq/WebCoreBridge.mm
WebKit/ChangeLog
WebKit/WebView.subproj/WebView.m
WebKit/WebView.subproj/WebViewPrivate.h

index 09f3615e5c620c4a12a252d9cd7ba0dcea2d6651..bffda267089c040426b7559124d47e1c045f3da2 100644 (file)
@@ -1,3 +1,14 @@
+2004-05-21  Richard Williamson   <rjw@apple.com>
+
+        Removed _bindObject:forFrame: SPI.
+        
+        Reviewed by Chris.
+
+        * kwq/KWQKHTMLPart.h:
+        * kwq/KWQKHTMLPart.mm:
+        * kwq/WebCoreBridge.h:
+        * kwq/WebCoreBridge.mm:
+
 2004-05-21  David Hyatt  <hyatt@apple.com>
 
        Fix for 3663644, repaints don't occur when the .innerHTML of a positioned element is changed.
index f9c081add1c123e5720c2eb33c2ea67034e9ffd7..b2382c1d5e79a5b4b0ae6b13909a1ae036b4ec19 100644 (file)
@@ -290,7 +290,6 @@ public:
     KJS::Bindings::RootObject *bindingRootObject();
     
     WebScriptObject *windowScriptObject();
-    void bindObject(void *object, QString name);
     
     void partClearedInBegin();
     
index 22b1676da1a97afb69618a3eb7e3de00b97002ca..9933a0baec05cb406cceb5dbd6d24c81ccfeb886 100644 (file)
@@ -1158,14 +1158,6 @@ WebScriptObject *KWQKHTMLPart::windowScriptObject()
     return _windowScriptObject;
 }
 
-void KWQKHTMLPart::bindObject(void *object, QString name)
-{
-    if (d->m_doc && jScript()) {
-        Window *w = Window::retrieveWindow(this);
-        w->put(jScript()->interpreter()->globalExec(), KJS::Identifier(name), Instance::createRuntimeObject(Instance::ObjectiveCLanguage, (void *)object));
-    }
-}
-
 void KWQKHTMLPart::partClearedInBegin()
 {
     [_bridge windowObjectCleared];
index ae7309cf379902bc2cee93db3d7f710da4a032c0..b2ec943ee4178ced192d32bfddd35a0645091473 100644 (file)
@@ -297,7 +297,6 @@ typedef enum {
 - (void)ensureCaretVisible;
 
 - (WebScriptObject *)windowScriptObject;
-- (void)bindObject:(id)object withName:(NSString *)name;
 
 @end
 
index 446c909a57a86eabe68f9bd48e3034cc7e9218c3..34fffd276186c9359f70aa04991931f71b1ddc79 100644 (file)
@@ -1091,14 +1091,6 @@ static HTMLFormElementImpl *formElementFromDOMElement(DOMElement *element)
     return _part->windowScriptObject();
 }
 
-- (void)bindObject:(id)object withName:(NSString *)name
-{
-    // Create an empty document, if necessary.  
-    _part->createEmptyDocument();
-    
-    _part->bindObject((void *)object, QString::fromNSString(name));
-}
-
 - (DOMDocument *)DOMDocument
 {
     return [DOMDocument _documentWithImpl:_part->xmlDocImpl()];
index f70bc3c2195a43b5507bdf41a447541200a6485d..6ce27b69441483f8e43203e36b705bb705d7c11f 100644 (file)
@@ -1,3 +1,12 @@
+2004-05-21  Richard Williamson   <rjw@apple.com>
+
+        Removed _bindObject:forFrame: SPI.
+
+        Reviewed by Chris.
+
+        * WebView.subproj/WebView.m:
+        * WebView.subproj/WebViewPrivate.h:
+
 === Safari-141 ===
 
 2004-05-21  Darin Adler  <darin@apple.com>
index 38e98387767afe5e6cb0e1d5f6c90bbe84bdf147..e640b403d9fd10e16d0dac43bccad7436d524456 100644 (file)
@@ -3312,14 +3312,3 @@ static NSFont *_fontFromStyle(DOMCSSStyleDeclaration *style)
 }
 
 @end
-
-@implementation WebView (JavaScriptBinding)
-- (void)_bindObject:(id)object withName:(NSString *)name toFrame:(WebFrame *)frame
-{
-    if (!frame)
-        [[[self mainFrame] _bridge] bindObject:object withName:name];
-    else {
-        [[frame _bridge] bindObject:object withName:name];
-    }
-}
-@end
index 39be761391401d32513a076b546f40b6d3b3b92b..52fdd39bba3e3348c67cbff8a618950782a642af 100644 (file)
@@ -316,17 +316,3 @@ Could be worth adding to the API.
 - (BOOL)_shouldEndEditingInDOMRange:(DOMRange *)range;
 @end
 
-
-@interface WebView (JavaScriptBinding)
-/*!
-    @method _bindObject:withName:toDocumentInFrame:
-    @discussion Expose the methods and instance variables of object to JavaScript.
-    @param object The object to be bound to JavaScript.
-    @param name The name of the property in JavaScript that is used to access the bound object.
-    @param frame If the frame is nil the object is bound to the main frame of the WebView.  The object
-    is added as a property of the window (which is the global object).
-*/
-- (void)_bindObject:(id)object withName:(NSString *)name toFrame:(WebFrame *)frame;
-@end
-
-