[webkit-changes] cvs commit: WebCore/khtml/ecma XSLTProcessor.cpp XSLTProcessor.h domparser.cpp xmlhttprequest.cpp xmlserializer.cpp

Anders andersca at opensource.apple.com
Tue Jan 3 14:34:21 PST 2006


andersca    06/01/03 14:34:21

  Modified:    .        ChangeLog
               khtml/ecma XSLTProcessor.cpp XSLTProcessor.h domparser.cpp
                        xmlhttprequest.cpp xmlserializer.cpp
  Log:
  2006-01-03  Anders Carlsson  <andersca at mac.com>
  
          Reviewed by Eric.
  
          - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6358
          JS objects missing "prototype" properties
  
          * khtml/ecma/XSLTProcessor.cpp:
          (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp):
          * khtml/ecma/XSLTProcessor.h:
          * khtml/ecma/domparser.cpp:
          (KJS::DOMParserConstructorImp::DOMParserConstructorImp):
          * khtml/ecma/xmlhttprequest.cpp:
          (KJS::XMLHttpRequestConstructorImp::XMLHttpRequestConstructorImp):
          * khtml/ecma/xmlserializer.cpp:
          (KJS::XMLSerializerConstructorImp::XMLSerializerConstructorImp):
          Add "prototype" property in constructors.
  
  Revision  Changes    Path
  1.80      +18 -0     WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- ChangeLog	3 Jan 2006 22:02:27 -0000	1.79
  +++ ChangeLog	3 Jan 2006 22:34:19 -0000	1.80
  @@ -1,3 +1,21 @@
  +2006-01-03  Anders Carlsson  <andersca at mac.com>
  +
  +        Reviewed by Eric.
  +
  +        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6358
  +        JS objects missing "prototype" properties
  +        
  +        * khtml/ecma/XSLTProcessor.cpp:
  +        (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp):
  +        * khtml/ecma/XSLTProcessor.h:
  +        * khtml/ecma/domparser.cpp:
  +        (KJS::DOMParserConstructorImp::DOMParserConstructorImp):
  +        * khtml/ecma/xmlhttprequest.cpp:
  +        (KJS::XMLHttpRequestConstructorImp::XMLHttpRequestConstructorImp):
  +        * khtml/ecma/xmlserializer.cpp:
  +        (KJS::XMLSerializerConstructorImp::XMLSerializerConstructorImp):
  +        Add "prototype" property in constructors.
  +
   2006-01-03  Eric Seidel  <eseidel at apple.com>
   
           Reviewed by darin.
  
  
  
  1.7       +5 -0      WebCore/khtml/ecma/XSLTProcessor.cpp
  
  Index: XSLTProcessor.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/XSLTProcessor.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XSLTProcessor.cpp	22 Dec 2005 21:10:50 -0000	1.6
  +++ XSLTProcessor.cpp	3 Jan 2006 22:34:19 -0000	1.7
  @@ -151,6 +151,11 @@
       return jsUndefined();
   }
   
  +XSLTProcessorConstructorImp::XSLTProcessorConstructorImp(ExecState *exec)
  +{
  +    putDirect(prototypePropertyName, XSLTProcessorProto::self(exec), DontEnum|DontDelete|ReadOnly);
  +}
  +
   };
   
   #endif // KHTML_XSLT
  
  
  
  1.5       +1 -1      WebCore/khtml/ecma/XSLTProcessor.h
  
  Index: XSLTProcessor.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/XSLTProcessor.h,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XSLTProcessor.h	11 Dec 2005 02:06:04 -0000	1.4
  +++ XSLTProcessor.h	3 Jan 2006 22:34:19 -0000	1.5
  @@ -59,7 +59,7 @@
   
   class XSLTProcessorConstructorImp : public JSObject {
   public:
  -    XSLTProcessorConstructorImp(ExecState *) { }
  +    XSLTProcessorConstructorImp(ExecState *);
       virtual bool implementsConstruct() const { return true; }
       virtual JSObject *construct(ExecState *exec, const List &args) { return new XSLTProcessor(exec); }
   };
  
  
  
  1.13      +2 -1      WebCore/khtml/ecma/domparser.cpp
  
  Index: domparser.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/domparser.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- domparser.cpp	22 Dec 2005 21:10:50 -0000	1.12
  +++ domparser.cpp	3 Jan 2006 22:34:19 -0000	1.13
  @@ -40,9 +40,10 @@
   KJS_IMPLEMENT_PROTOFUNC(DOMParserProtoFunc)
   KJS_IMPLEMENT_PROTOTYPE("DOMParser",DOMParserProto,DOMParserProtoFunc)
   
  -DOMParserConstructorImp::DOMParserConstructorImp(ExecState *, DOM::DocumentImpl *d)
  +DOMParserConstructorImp::DOMParserConstructorImp(ExecState *exec, DOM::DocumentImpl *d)
       : doc(d)
   {
  +    putDirect(prototypePropertyName, DOMParserProto::self(exec), DontEnum|DontDelete|ReadOnly);
   }
   
   bool DOMParserConstructorImp::implementsConstruct() const
  
  
  
  1.59      +2 -1      WebCore/khtml/ecma/xmlhttprequest.cpp
  
  Index: xmlhttprequest.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/xmlhttprequest.cpp,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- xmlhttprequest.cpp	23 Dec 2005 18:44:10 -0000	1.58
  +++ xmlhttprequest.cpp	3 Jan 2006 22:34:20 -0000	1.59
  @@ -131,9 +131,10 @@
     jsObject->slotRedirection( job, url ); 
   }
   
  -XMLHttpRequestConstructorImp::XMLHttpRequestConstructorImp(ExecState *, DOM::DocumentImpl *d)
  +XMLHttpRequestConstructorImp::XMLHttpRequestConstructorImp(ExecState *exec, DOM::DocumentImpl *d)
       : doc(d)
   {
  +    putDirect(prototypePropertyName, XMLHttpRequestProto::self(exec), DontEnum|DontDelete|ReadOnly);
   }
   
   XMLHttpRequestConstructorImp::~XMLHttpRequestConstructorImp()
  
  
  
  1.14      +2 -1      WebCore/khtml/ecma/xmlserializer.cpp
  
  Index: xmlserializer.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/xmlserializer.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- xmlserializer.cpp	30 Dec 2005 14:51:31 -0000	1.13
  +++ xmlserializer.cpp	3 Jan 2006 22:34:20 -0000	1.14
  @@ -46,9 +46,10 @@
   KJS_IMPLEMENT_PROTOFUNC(XMLSerializerProtoFunc)
   KJS_IMPLEMENT_PROTOTYPE("XMLSerializer",XMLSerializerProto,XMLSerializerProtoFunc)
   
  -XMLSerializerConstructorImp::XMLSerializerConstructorImp(ExecState *)
  +XMLSerializerConstructorImp::XMLSerializerConstructorImp(ExecState *exec)
       : JSObject()
   {
  +    putDirect(prototypePropertyName, XMLSerializerProto::self(exec), DontEnum|DontDelete|ReadOnly);
   }
   
   bool XMLSerializerConstructorImp::implementsConstruct() const
  
  
  



More information about the webkit-changes mailing list