[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.1/kdelibs/khtml/ecma
From:       Maks Orlovich <maksim () kde ! org>
Date:       2008-08-23 20:32:08
Message-ID: 1219523528.864887.24113.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 851489 by orlovich:

Add missing prototypes and some missing DontEnum's.


 M  +2 -2      domparser.cpp  
 M  +2 -2      kjs_audio.cpp  
 M  +1 -1      kjs_dom.h  
 M  +3 -3      kjs_html.cpp  
 M  +2 -2      kjs_window.cpp  
 M  +1 -1      xmlhttprequest.cpp  
 M  +2 -2      xmlserializer.cpp  


--- branches/KDE/4.1/kdelibs/khtml/ecma/domparser.cpp #851488:851489
@@ -47,8 +47,8 @@
 KJS_IMPLEMENT_PROTOTYPE("DOMParser",DOMParserProto,DOMParserProtoFunc)
 
 
-DOMParserConstructorImp::DOMParserConstructorImp(ExecState *, DOM::DocumentImpl *d)
-    : doc(d)
+DOMParserConstructorImp::DOMParserConstructorImp(ExecState* exec, DOM::DocumentImpl \
*d) +    : JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()), doc(d)
 {
 }
 
--- branches/KDE/4.1/kdelibs/khtml/ecma/kjs_audio.cpp #851488:851489
@@ -33,8 +33,8 @@
 
 namespace KJS {
 
-AudioConstructorImp::AudioConstructorImp(ExecState *, DOM::DocumentImpl* d)
-    : JSObject(), doc(d)
+AudioConstructorImp::AudioConstructorImp(ExecState* exec, DOM::DocumentImpl* d)
+    : JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()), doc(d)
 {
 }
 
--- branches/KDE/4.1/kdelibs/khtml/ecma/kjs_dom.h #851488:851489
@@ -85,7 +85,7 @@
     JSValue* indexGetter(ExecState *exec, unsigned index);
     
     virtual bool getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, \
                PropertySlot& slot);
-    virtual JSValue* callAsFunction(ExecState *exec, JSObject* thisObj, const \
List&args); +    virtual JSValue* callAsFunction(ExecState *exec, JSObject* thisObj, \
const List& args);  virtual bool implementsCall() const { return true; }
     virtual bool isFunctionType() const { return false; }
     virtual void getPropertyNames(ExecState* exec, PropertyNameArray& names);
--- branches/KDE/4.1/kdelibs/khtml/ecma/kjs_html.cpp #851488:851489
@@ -3348,7 +3348,7 @@
 ////////////////////// Option Object ////////////////////////
 
 OptionConstructorImp::OptionConstructorImp(ExecState *exec, DOM::DocumentImpl* d)
-    : JSObject(), doc(d)
+    : JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()), doc(d)
 {
   // ## isn't there some redundancy between JSObject::_proto and the "prototype" \
property ?  //put(exec,"prototype", ...,DontEnum|DontDelete|ReadOnly);
@@ -3390,8 +3390,8 @@
 
 //Like in other browsers, we merely make a new HTMLImageElement
 //not in tree for this.
-ImageConstructorImp::ImageConstructorImp(ExecState *, DOM::DocumentImpl* d)
-    : JSObject(), doc(d)
+ImageConstructorImp::ImageConstructorImp(ExecState* exec, DOM::DocumentImpl* d)
+    : JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()), doc(d)
 {
 }
 
--- branches/KDE/4.1/kdelibs/khtml/ecma/kjs_window.cpp #851488:851489
@@ -260,8 +260,8 @@
   removeEventListener	Window::RemoveEventListener	DontDelete|Function 3
 # Normally found in prototype. Add to window object itself to make them
 # accessible in closed and cross-site windows
-  valueOf       Window::ValueOf		DontDelete|Function 0
-  toString      Window::ToString	DontDelete|Function 0
+  valueOf       Window::ValueOf		DontEnum|DontDelete|Function 0
+  toString      Window::ToString	DontEnum|DontDelete|Function 0
 # IE extension
   navigate	Window::Navigate	DontDelete|Function 1
 # Mozilla extension
--- branches/KDE/4.1/kdelibs/khtml/ecma/xmlhttprequest.cpp #851488:851489
@@ -99,7 +99,7 @@
 }
 
 XMLHttpRequestConstructorImp::XMLHttpRequestConstructorImp(ExecState *exec, \
                DOM::DocumentImpl* d)
-    : JSObject(), doc(d)
+    : JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()), doc(d)
 {
     JSObject* proto = XMLHttpRequestProto::self(exec);
     putDirect(exec->propertyNames().prototype, proto, DontDelete|ReadOnly);
--- branches/KDE/4.1/kdelibs/khtml/ecma/xmlserializer.cpp #851488:851489
@@ -41,8 +41,8 @@
 KJS_IMPLEMENT_PROTOFUNC(XMLSerializerProtoFunc)
 KJS_IMPLEMENT_PROTOTYPE("XMLSerializer", XMLSerializerProto,XMLSerializerProtoFunc)
 
-XMLSerializerConstructorImp::XMLSerializerConstructorImp(ExecState *)
-    : JSObject()
+XMLSerializerConstructorImp::XMLSerializerConstructorImp(ExecState* exec)
+    : JSObject(exec->lexicalInterpreter()->builtinObjectPrototype())
 {
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic