[webkit-changes] cvs commit: WebCore/khtml/ecma kjs_binding.h kjs_css.cpp kjs_css.h kjs_dom.cpp kjs_dom.h kjs_events.cpp kjs_html.cpp kjs_range.cpp kjs_traversal.cpp xmlhttprequest.cpp xmlserializer.cpp

Adele adele at opensource.apple.com
Tue Jul 12 22:18:02 PDT 2005


adele       05/07/12 22:18:02

  Modified:    .        Tag: Safari-1-3-branch ChangeLog
               khtml/ecma Tag: Safari-1-3-branch kjs_binding.h kjs_css.cpp
                        kjs_css.h kjs_dom.cpp kjs_dom.h kjs_events.cpp
                        kjs_html.cpp kjs_range.cpp kjs_traversal.cpp
                        xmlhttprequest.cpp xmlserializer.cpp
  Log:
          Merged fix from TOT to Safari-1-3-branch
          <rdar://problem/4164991>
  
      2005-05-05  Maciej Stachowiak  <mjs at apple.com>
  
          Reviewed by Darin.
  
          <rdar://problem/4058167> Unit Converter and Weather widgets crashed in KJS::Collector::markCurrentThreadConservatively
  
          Avoid possibly allocating new prototype objects as parameters to
          superclass constructors - there may be an allocated but
          uninitilized object so this is a bad time to allocate. Instead,
          set the prototype in the constructor body, since the object is
          happily allocated by then.
  
          * khtml/ecma/kjs_binding.h:
          * khtml/ecma/kjs_css.cpp:
          (DOMCSSStyleDeclaration::DOMCSSStyleDeclaration):
          (DOMMediaList::DOMMediaList):
          (DOMCSSStyleSheet::DOMCSSStyleSheet):
          (DOMCSSPrimitiveValue::DOMCSSPrimitiveValue):
          (DOMCSSValueList::DOMCSSValueList):
          * khtml/ecma/kjs_css.h:
          (KJS::DOMStyleSheet::DOMStyleSheet):
          (KJS::DOMCSSValue::DOMCSSValue):
          * khtml/ecma/kjs_dom.cpp:
          (DOMNode::DOMNode):
          (DOMDocument::DOMDocument):
          (DOMElement::DOMElement):
          (DOMDOMImplementation::DOMDOMImplementation):
          (DOMNamedNodeMap::DOMNamedNodeMap):
          (DOMNamedNodesCollection::DOMNamedNodesCollection):
          (DOMCharacterData::DOMCharacterData):
          (DOMText::DOMText):
          * khtml/ecma/kjs_dom.h:
          (KJS::NodeConstructor::NodeConstructor):
          (KJS::DOMExceptionConstructor::DOMExceptionConstructor):
          * khtml/ecma/kjs_events.cpp:
          (DOMEvent::DOMEvent):
          (Clipboard::Clipboard):
          * khtml/ecma/kjs_html.cpp:
          (HTMLCollection::HTMLCollection):
          * khtml/ecma/kjs_range.cpp:
          (DOMRange::DOMRange):
          * khtml/ecma/kjs_traversal.cpp:
          (DOMNodeIterator::DOMNodeIterator):
          (DOMNodeFilter::DOMNodeFilter):
          (DOMTreeWalker::DOMTreeWalker):
          * khtml/ecma/xmlhttprequest.cpp:
          (KJS::XMLHttpRequest::XMLHttpRequest):
          * khtml/ecma/xmlserializer.cpp:
          (KJS::XMLSerializer::XMLSerializer):
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4108.4.41 +55 -0     WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.4108.4.40
  retrieving revision 1.4108.4.41
  diff -u -r1.4108.4.40 -r1.4108.4.41
  --- ChangeLog	13 Jul 2005 05:07:59 -0000	1.4108.4.40
  +++ ChangeLog	13 Jul 2005 05:17:51 -0000	1.4108.4.41
  @@ -1,6 +1,61 @@
   2005-07-12  Adele Peterson  <adele at apple.com>
   
           Merged fix from TOT to Safari-1-3-branch
  +        <rdar://problem/4164991>
  +
  +    2005-05-05  Maciej Stachowiak  <mjs at apple.com>
  +
  +        Reviewed by Darin.
  +
  +	<rdar://problem/4058167> Unit Converter and Weather widgets crashed in KJS::Collector::markCurrentThreadConservatively
  +        
  +	Avoid possibly allocating new prototype objects as parameters to
  +	superclass constructors - there may be an allocated but
  +	uninitilized object so this is a bad time to allocate. Instead,
  +	set the prototype in the constructor body, since the object is
  +	happily allocated by then.
  +
  +	* khtml/ecma/kjs_binding.h:
  +        * khtml/ecma/kjs_css.cpp:
  +        (DOMCSSStyleDeclaration::DOMCSSStyleDeclaration):
  +        (DOMMediaList::DOMMediaList):
  +        (DOMCSSStyleSheet::DOMCSSStyleSheet):
  +        (DOMCSSPrimitiveValue::DOMCSSPrimitiveValue):
  +        (DOMCSSValueList::DOMCSSValueList):
  +        * khtml/ecma/kjs_css.h:
  +        (KJS::DOMStyleSheet::DOMStyleSheet):
  +        (KJS::DOMCSSValue::DOMCSSValue):
  +        * khtml/ecma/kjs_dom.cpp:
  +        (DOMNode::DOMNode):
  +        (DOMDocument::DOMDocument):
  +        (DOMElement::DOMElement):
  +        (DOMDOMImplementation::DOMDOMImplementation):
  +        (DOMNamedNodeMap::DOMNamedNodeMap):
  +        (DOMNamedNodesCollection::DOMNamedNodesCollection):
  +        (DOMCharacterData::DOMCharacterData):
  +        (DOMText::DOMText):
  +        * khtml/ecma/kjs_dom.h:
  +        (KJS::NodeConstructor::NodeConstructor):
  +        (KJS::DOMExceptionConstructor::DOMExceptionConstructor):
  +        * khtml/ecma/kjs_events.cpp:
  +        (DOMEvent::DOMEvent):
  +        (Clipboard::Clipboard):
  +        * khtml/ecma/kjs_html.cpp:
  +        (HTMLCollection::HTMLCollection):
  +        * khtml/ecma/kjs_range.cpp:
  +        (DOMRange::DOMRange):
  +        * khtml/ecma/kjs_traversal.cpp:
  +        (DOMNodeIterator::DOMNodeIterator):
  +        (DOMNodeFilter::DOMNodeFilter):
  +        (DOMTreeWalker::DOMTreeWalker):
  +        * khtml/ecma/xmlhttprequest.cpp:
  +        (KJS::XMLHttpRequest::XMLHttpRequest):
  +        * khtml/ecma/xmlserializer.cpp:
  +        (KJS::XMLSerializer::XMLSerializer):
  +
  +2005-07-12  Adele Peterson  <adele at apple.com>
  +
  +        Merged fix from TOT to Safari-1-3-branch
           <rdar://problem/4165001>
   
       2005-05-27  Adele Peterson  <adele at apple.com>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.22.6.1  +0 -1      WebCore/khtml/ecma/kjs_binding.h
  
  Index: kjs_binding.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_binding.h,v
  retrieving revision 1.22
  retrieving revision 1.22.6.1
  diff -u -r1.22 -r1.22.6.1
  --- kjs_binding.h	12 Feb 2005 00:58:12 -0000	1.22
  +++ kjs_binding.h	13 Jul 2005 05:17:58 -0000	1.22.6.1
  @@ -46,7 +46,6 @@
      */
     class DOMObject : public ObjectImp {
     public:
  -    DOMObject(const Object &proto) : ObjectImp(proto) {}
       DOMObject() : ObjectImp() {}
       virtual Value get(ExecState *exec, const Identifier &propertyName) const;
       virtual Value tryGet(ExecState *exec, const Identifier &propertyName) const
  
  
  
  1.19.14.1 +19 -6     WebCore/khtml/ecma/kjs_css.cpp
  
  Index: kjs_css.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_css.cpp,v
  retrieving revision 1.19
  retrieving revision 1.19.14.1
  diff -u -r1.19 -r1.19.14.1
  --- kjs_css.cpp	20 May 2004 15:09:32 -0000	1.19
  +++ kjs_css.cpp	13 Jul 2005 05:17:58 -0000	1.19.14.1
  @@ -86,8 +86,10 @@
   const ClassInfo DOMCSSStyleDeclaration::info = { "CSSStyleDeclaration", 0, &DOMCSSStyleDeclarationTable, 0 };
   
   DOMCSSStyleDeclaration::DOMCSSStyleDeclaration(ExecState *exec, DOM::CSSStyleDeclaration s)
  -  : DOMObject(DOMCSSStyleDeclarationProto::self(exec)), styleDecl(s)
  -{ }
  +  : styleDecl(s)
  +{ 
  +  setPrototype(DOMCSSStyleDeclarationProto::self(exec));
  +}
   
   DOMCSSStyleDeclaration::~DOMCSSStyleDeclaration()
   {
  @@ -419,7 +421,10 @@
   IMPLEMENT_PROTOTYPE(DOMMediaListProto, DOMMediaListProtoFunc)
   
   DOMMediaList::DOMMediaList(ExecState *exec, DOM::MediaList ml)
  -  : DOMObject(DOMMediaListProto::self(exec)), mediaList(ml) { }
  +  : mediaList(ml)
  +{
  +  setPrototype(DOMMediaListProto::self(exec));
  +}
   
   DOMMediaList::~DOMMediaList()
   {
  @@ -499,7 +504,10 @@
   IMPLEMENT_PROTOTYPE(DOMCSSStyleSheetProto,DOMCSSStyleSheetProtoFunc) // warning, use _WITH_PARENT if DOMStyleSheet gets a proto
   
   DOMCSSStyleSheet::DOMCSSStyleSheet(ExecState *exec, DOM::CSSStyleSheet ss)
  -  : DOMStyleSheet(DOMCSSStyleSheetProto::self(exec),ss) { }
  +  : DOMStyleSheet(ss) 
  +{
  +  setPrototype(DOMCSSStyleSheetProto::self(exec));
  +}
   
   DOMCSSStyleSheet::~DOMCSSStyleSheet()
   {
  @@ -969,7 +977,10 @@
   IMPLEMENT_PROTOTYPE(DOMCSSPrimitiveValueProto,DOMCSSPrimitiveValueProtoFunc)
   
   DOMCSSPrimitiveValue::DOMCSSPrimitiveValue(ExecState *exec, DOM::CSSPrimitiveValue v)
  -  : DOMCSSValue(DOMCSSPrimitiveValueProto::self(exec), v) { }
  +  : DOMCSSValue(v) 
  +{ 
  +  setPrototype(DOMCSSPrimitiveValueProto::self(exec));
  +}
   
   Value DOMCSSPrimitiveValue::tryGet(ExecState *exec, const Identifier &p) const
   {
  @@ -1072,7 +1083,9 @@
   IMPLEMENT_PROTOFUNC(DOMCSSValueListFunc) // not really a proto, but doesn't matter
   
   DOMCSSValueList::DOMCSSValueList(ExecState *exec, DOM::CSSValueList v)
  -  : DOMCSSValue(exec, v) { }
  +  : DOMCSSValue(exec, v) 
  +{ 
  +}
   
   Value DOMCSSValueList::tryGet(ExecState *exec, const Identifier &p) const
   {
  
  
  
  1.10.14.1 +2 -2      WebCore/khtml/ecma/kjs_css.h
  
  Index: kjs_css.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_css.h,v
  retrieving revision 1.10
  retrieving revision 1.10.14.1
  diff -u -r1.10 -r1.10.14.1
  --- kjs_css.h	20 May 2004 15:09:32 -0000	1.10
  +++ kjs_css.h	13 Jul 2005 05:17:58 -0000	1.10.14.1
  @@ -57,7 +57,7 @@
       // Build a DOMStyleSheet
       DOMStyleSheet(ExecState *, DOM::StyleSheet ss) : styleSheet(ss) { }
       // Constructor for inherited classes
  -    DOMStyleSheet(Object proto, DOM::StyleSheet ss) : DOMObject(proto), styleSheet(ss) { }
  +    DOMStyleSheet(DOM::StyleSheet ss) : styleSheet(ss) { }
       virtual ~DOMStyleSheet();
       virtual Value tryGet(ExecState *exec, const Identifier &propertyName) const;
       Value getValueProperty(ExecState *exec, int token) const;
  @@ -184,7 +184,7 @@
     class DOMCSSValue : public DOMObject {
     public:
       DOMCSSValue(ExecState *, DOM::CSSValue v) : cssValue(v) { }
  -    DOMCSSValue(Object proto, DOM::CSSValue v) : DOMObject(proto), cssValue(v) { }
  +    DOMCSSValue(DOM::CSSValue v) : cssValue(v) { }
       virtual ~DOMCSSValue();
       virtual Value tryGet(ExecState *exec,const Identifier &propertyName) const;
       virtual void tryPut(ExecState *exec, const Identifier &propertyName, const Value& value, int attr = None);
  
  
  
  1.66.4.2  +41 -16    WebCore/khtml/ecma/kjs_dom.cpp
  
  Index: kjs_dom.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_dom.cpp,v
  retrieving revision 1.66.4.1
  retrieving revision 1.66.4.2
  diff -u -r1.66.4.1 -r1.66.4.2
  --- kjs_dom.cpp	16 Apr 2005 00:14:16 -0000	1.66.4.1
  +++ kjs_dom.cpp	13 Jul 2005 05:17:59 -0000	1.66.4.2
  @@ -82,12 +82,13 @@
   const ClassInfo DOMNode::info = { "Node", 0, &DOMNodeTable, 0 };
   
   DOMNode::DOMNode(ExecState *exec, const DOM::Node &n)
  -  : DOMObject(DOMNodeProto::self(exec)), node(n)
  +  : node(n)
   {
  +  setPrototype(DOMNodeProto::self(exec));
   }
   
  -DOMNode::DOMNode(const Object &proto, const DOM::Node &n)
  -  : DOMObject(proto), node(n)
  +DOMNode::DOMNode(const DOM::Node &n)
  +  : node(n)
   {
   }
   
  @@ -826,10 +827,15 @@
   */
   
   DOMDocument::DOMDocument(ExecState *exec, const DOM::Document &d)
  -  : DOMNode(DOMDocumentProto::self(exec), d) { }
  +  : DOMNode(d) 
  +{ 
  +  setPrototype(DOMDocumentProto::self(exec));
  +}
   
  -DOMDocument::DOMDocument(const Object &proto, const DOM::Document &d)
  -  : DOMNode(proto, d) { }
  +DOMDocument::DOMDocument(const DOM::Document &d)
  +  : DOMNode(d) 
  +{ 
  +}
   
   DOMDocument::~DOMDocument()
   {
  @@ -1049,10 +1055,15 @@
   @end
   */
   DOMElement::DOMElement(ExecState *exec, const DOM::Element &e)
  -  : DOMNode(DOMElementProto::self(exec), e) { }
  +  : DOMNode(e) 
  +{
  +  setPrototype(DOMElementProto::self(exec));
  +}
   
  -DOMElement::DOMElement(const Object &proto, const DOM::Element &e)
  -  : DOMNode(proto, e) { }
  +DOMElement::DOMElement(const DOM::Element &e)
  +  : DOMNode(e) 
  +{ 
  +}
   
   Value DOMElement::tryGet(ExecState *exec, const Identifier &propertyName) const
   {
  @@ -1180,7 +1191,10 @@
   const ClassInfo DOMDOMImplementation::info = { "DOMImplementation", 0, 0, 0 };
   
   DOMDOMImplementation::DOMDOMImplementation(ExecState *exec, const DOM::DOMImplementation &i)
  -  : DOMObject(DOMDOMImplementationProto::self(exec)), implementation(i) { }
  +  : implementation(i) 
  +{ 
  +  setPrototype(DOMDOMImplementationProto::self(exec));
  +}
   
   DOMDOMImplementation::~DOMDOMImplementation()
   {
  @@ -1280,7 +1294,10 @@
   const ClassInfo DOMNamedNodeMap::info = { "NamedNodeMap", 0, 0, 0 };
   
   DOMNamedNodeMap::DOMNamedNodeMap(ExecState *exec, const DOM::NamedNodeMap &m)
  -  : DOMObject(DOMNamedNodeMapProto::self(exec)), map(m) { }
  +  : map(m) 
  +{ 
  +  setPrototype(DOMNamedNodeMapProto::self(exec));
  +}
   
   DOMNamedNodeMap::~DOMNamedNodeMap()
   {
  @@ -1742,7 +1759,7 @@
   // for constructs like document.forms.<name>[1],
   // so it shouldn't be a problem that it's storing all the nodes (with the same name). (David)
   DOMNamedNodesCollection::DOMNamedNodesCollection(ExecState *, const QValueList<DOM::Node>& nodes )
  -  : DOMObject(), m_nodes(nodes)
  +  : m_nodes(nodes)
   {
     // Maybe we should ref (and deref in the dtor) the nodes, though ?
   }
  @@ -1805,10 +1822,15 @@
   IMPLEMENT_PROTOTYPE_WITH_PARENT(DOMCharacterDataProto,DOMCharacterDataProtoFunc, DOMNodeProto)
   
   DOMCharacterData::DOMCharacterData(ExecState *exec, const DOM::CharacterData &d)
  - : DOMNode(DOMCharacterDataProto::self(exec), d) {}
  + : DOMNode(d) 
  +{
  +  setPrototype(DOMCharacterDataProto::self(exec));
  +}
   
  -DOMCharacterData::DOMCharacterData(const Object &proto, const DOM::CharacterData &d)
  - : DOMNode(proto, d) {}
  +DOMCharacterData::DOMCharacterData(const DOM::CharacterData &d)
  + : DOMNode(d) 
  +{
  +}
   
   Value DOMCharacterData::tryGet(ExecState *exec, const Identifier &p) const
   {
  @@ -1894,7 +1916,10 @@
   IMPLEMENT_PROTOTYPE_WITH_PARENT(DOMTextProto,DOMTextProtoFunc,DOMCharacterDataProto)
   
   DOMText::DOMText(ExecState *exec, const DOM::Text &t)
  -  : DOMCharacterData(DOMTextProto::self(exec), t) { }
  +  : DOMCharacterData(t) 
  +{ 
  +  setPrototype(DOMTextProto::self(exec));
  +}
   
   Value DOMText::tryGet(ExecState *exec, const Identifier &p) const
   {
  
  
  
  1.34.4.2  +6 -6      WebCore/khtml/ecma/kjs_dom.h
  
  Index: kjs_dom.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_dom.h,v
  retrieving revision 1.34.4.1
  retrieving revision 1.34.4.2
  diff -u -r1.34.4.1 -r1.34.4.2
  --- kjs_dom.h	16 Apr 2005 00:14:16 -0000	1.34.4.1
  +++ kjs_dom.h	13 Jul 2005 05:17:59 -0000	1.34.4.2
  @@ -38,7 +38,7 @@
       // Build a DOMNode
       DOMNode(ExecState *exec, const DOM::Node &n);
       // Constructor for inherited classes
  -    DOMNode(const Object &proto, const DOM::Node &n);
  +    DOMNode(const DOM::Node &n);
       virtual bool toBoolean(ExecState *) const;
       virtual Value tryGet(ExecState *exec, const Identifier &propertyName) const;
       Value getValueProperty(ExecState *exec, int token) const;
  @@ -110,7 +110,7 @@
       // Build a DOMDocument
       DOMDocument(ExecState *exec, const DOM::Document &d);
       // Constructor for inherited classes
  -    DOMDocument(const Object &proto, const DOM::Document &d);
  +    DOMDocument(const DOM::Document &d);
       ~DOMDocument();
       virtual Value tryGet(ExecState *exec, const Identifier &propertyName) const;
       Value getValueProperty(ExecState *exec, int token) const;
  @@ -148,7 +148,7 @@
       // Build a DOMElement
       DOMElement(ExecState *exec, const DOM::Element &e);
       // Constructor for inherited classes
  -    DOMElement(const Object &proto, const DOM::Element &e);
  +    DOMElement(const DOM::Element &e);
       virtual Value tryGet(ExecState *exec, const Identifier &propertyName) const;
       // no put - all read-only
       virtual const ClassInfo* classInfo() const { return &info; }
  @@ -241,7 +241,7 @@
     // Constructor for Node - constructor stuff not implemented yet
     class NodeConstructor : public DOMObject {
     public:
  -    NodeConstructor(ExecState *) : DOMObject() { }
  +    NodeConstructor(ExecState *) { }
       virtual Value tryGet(ExecState *exec, const Identifier &propertyName) const;
       Value getValueProperty(ExecState *exec, int token) const;
       // no put - all read-only
  @@ -252,7 +252,7 @@
     // Constructor for DOMException - constructor stuff not implemented yet
     class DOMExceptionConstructor : public DOMObject {
     public:
  -    DOMExceptionConstructor(ExecState *) : DOMObject() { }
  +    DOMExceptionConstructor(ExecState *) { }
       virtual Value tryGet(ExecState *exec, const Identifier &propertyName) const;
       Value getValueProperty(ExecState *exec, int token) const;
       // no put - all read-only
  @@ -287,7 +287,7 @@
       // Build a DOMCharacterData
       DOMCharacterData(ExecState *exec, const DOM::CharacterData &d);
       // Constructor for inherited classes
  -    DOMCharacterData(const Object &proto, const DOM::CharacterData &d);
  +    DOMCharacterData(const DOM::CharacterData &d);
       virtual Value tryGet(ExecState *exec,const Identifier &propertyName) const;
       Value getValueProperty(ExecState *, int token) const;
       virtual void tryPut(ExecState *exec, const Identifier &propertyName, const Value& value, int attr = None);
  
  
  
  1.42.6.1  +7 -2      WebCore/khtml/ecma/kjs_events.cpp
  
  Index: kjs_events.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_events.cpp,v
  retrieving revision 1.42
  retrieving revision 1.42.6.1
  diff -u -r1.42 -r1.42.6.1
  --- kjs_events.cpp	10 Mar 2005 04:04:46 -0000	1.42
  +++ kjs_events.cpp	13 Jul 2005 05:17:59 -0000	1.42.6.1
  @@ -376,7 +376,10 @@
   IMPLEMENT_PROTOTYPE(DOMEventProto, DOMEventProtoFunc)
   
   DOMEvent::DOMEvent(ExecState *exec, DOM::Event e)
  -  : DOMObject(DOMEventProto::self(exec)), event(e), clipboard(0) { }
  +  : event(e), clipboard(0) 
  +{
  +  setPrototype(DOMEventProto::self(exec));
  +}
   
   DOMEvent::~DOMEvent()
   {
  @@ -987,8 +990,10 @@
   IMPLEMENT_PROTOTYPE(ClipboardProto, ClipboardProtoFunc)
   
   Clipboard::Clipboard(ExecState *exec, DOM::ClipboardImpl *cb)
  -: DOMObject(ClipboardProto::self(exec)), clipboard(cb)
  +  : clipboard(cb)
   {
  +    setPrototype(ClipboardProto::self(exec));
  +  
       if (clipboard)
           clipboard->ref();
   }
  
  
  
  1.108.4.2 +4 -1      WebCore/khtml/ecma/kjs_html.cpp
  
  Index: kjs_html.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_html.cpp,v
  retrieving revision 1.108.4.1
  retrieving revision 1.108.4.2
  diff -u -r1.108.4.1 -r1.108.4.2
  --- kjs_html.cpp	12 Jul 2005 00:47:22 -0000	1.108.4.1
  +++ kjs_html.cpp	13 Jul 2005 05:17:59 -0000	1.108.4.2
  @@ -3066,7 +3066,10 @@
   const ClassInfo HTMLCollection::info = { "HTMLCollection", 0, 0, 0 };
   
   HTMLCollection::HTMLCollection(ExecState *exec, const DOM::HTMLCollection &c)
  -  : DOMObject(HTMLCollectionProto::self(exec)), collection(c) {}
  +  : collection(c) 
  +{
  +  setPrototype(HTMLCollectionProto::self(exec));
  +}
   
   HTMLCollection::~HTMLCollection()
   {
  
  
  
  1.8.16.1  +4 -1      WebCore/khtml/ecma/kjs_range.cpp
  
  Index: kjs_range.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_range.cpp,v
  retrieving revision 1.8
  retrieving revision 1.8.16.1
  diff -u -r1.8 -r1.8.16.1
  --- kjs_range.cpp	2 Feb 2004 18:55:26 -0000	1.8
  +++ kjs_range.cpp	13 Jul 2005 05:17:59 -0000	1.8.16.1
  @@ -64,7 +64,10 @@
   IMPLEMENT_PROTOTYPE(DOMRangeProto,DOMRangeProtoFunc)
   
   DOMRange::DOMRange(ExecState *exec, DOM::Range r)
  - : DOMObject(DOMRangeProto::self(exec)), range(r) {}
  + : range(r) 
  +{
  +  setPrototype(DOMRangeProto::self(exec));
  +}
   
   DOMRange::~DOMRange()
   {
  
  
  
  1.8.16.1  +12 -3     WebCore/khtml/ecma/kjs_traversal.cpp
  
  Index: kjs_traversal.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_traversal.cpp,v
  retrieving revision 1.8
  retrieving revision 1.8.16.1
  diff -u -r1.8 -r1.8.16.1
  --- kjs_traversal.cpp	4 May 2004 22:37:59 -0000	1.8
  +++ kjs_traversal.cpp	13 Jul 2005 05:17:59 -0000	1.8.16.1
  @@ -52,7 +52,10 @@
   IMPLEMENT_PROTOTYPE(DOMNodeIteratorProto,DOMNodeIteratorProtoFunc)
   
   DOMNodeIterator::DOMNodeIterator(ExecState *exec, DOM::NodeIterator ni)
  -  : DOMObject(DOMNodeIteratorProto::self(exec)), nodeIterator(ni) {}
  +  : nodeIterator(ni) 
  +{
  +  setPrototype(DOMNodeIteratorProto::self(exec));
  +}
   
   DOMNodeIterator::~DOMNodeIterator()
   {
  @@ -164,7 +167,10 @@
   IMPLEMENT_PROTOTYPE(DOMNodeFilterProto,DOMNodeFilterProtoFunc)
   
   DOMNodeFilter::DOMNodeFilter(ExecState *exec, DOM::NodeFilter nf)
  -  : DOMObject(DOMNodeFilterProto::self(exec)), nodeFilter(nf) {}
  +  : nodeFilter(nf) 
  +{
  +  setPrototype(DOMNodeFilterProto::self(exec));
  +}
   
   DOMNodeFilter::~DOMNodeFilter()
   {
  @@ -217,7 +223,10 @@
   IMPLEMENT_PROTOTYPE(DOMTreeWalkerProto,DOMTreeWalkerProtoFunc)
   
   DOMTreeWalker::DOMTreeWalker(ExecState *exec, DOM::TreeWalker tw)
  -  : DOMObject(DOMTreeWalkerProto::self(exec)), treeWalker(tw) {}
  +  : treeWalker(tw)
  +{
  +  setPrototype(DOMTreeWalkerProto::self(exec));
  +}
   
   DOMTreeWalker::~DOMTreeWalker()
   {
  
  
  
  1.26.6.1  +2 -2      WebCore/khtml/ecma/xmlhttprequest.cpp
  
  Index: xmlhttprequest.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/xmlhttprequest.cpp,v
  retrieving revision 1.26
  retrieving revision 1.26.6.1
  diff -u -r1.26 -r1.26.6.1
  --- xmlhttprequest.cpp	24 Mar 2005 22:58:01 -0000	1.26
  +++ xmlhttprequest.cpp	13 Jul 2005 05:18:00 -0000	1.26.6.1
  @@ -229,8 +229,7 @@
   
   
   XMLHttpRequest::XMLHttpRequest(ExecState *exec, const DOM::Document &d)
  -  : DOMObject(XMLHttpRequestProto::self(exec)),
  -    qObject(new XMLHttpRequestQObject(this)),
  +  : qObject(new XMLHttpRequestQObject(this)),
       doc(static_cast<DOM::DocumentImpl*>(d.handle())),
       async(true),
       job(0),
  @@ -241,6 +240,7 @@
       createdDocument(false),
       aborted(false)
   {
  +  setPrototype(XMLHttpRequestProto::self(exec));
   }
   
   XMLHttpRequest::~XMLHttpRequest()
  
  
  
  1.1.26.1  +1 -1      WebCore/khtml/ecma/xmlserializer.cpp
  
  Index: xmlserializer.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/xmlserializer.cpp,v
  retrieving revision 1.1
  retrieving revision 1.1.26.1
  diff -u -r1.1 -r1.1.26.1
  --- xmlserializer.cpp	10 Dec 2003 04:05:46 -0000	1.1
  +++ xmlserializer.cpp	13 Jul 2005 05:18:00 -0000	1.1.26.1
  @@ -65,8 +65,8 @@
   */
   
   XMLSerializer::XMLSerializer(ExecState *exec)
  -  : DOMObject(XMLSerializerProto::self(exec))
   {
  +  setPrototype(XMLSerializerProto::self(exec));
   }
   
   Value XMLSerializerProtoFunc::tryCall(ExecState *exec, Object &thisObj, const List &args)
  
  
  



More information about the webkit-changes mailing list