Backed out changeset 19b4c1cacdb8 - everything related to bug 517199.

This commit is contained in:
Igor Bukanov
2009-10-01 16:10:42 +04:00
parent bf9a0f2d25
commit b058f1858f
10 changed files with 79 additions and 87 deletions

View File

@@ -3385,9 +3385,9 @@ Descendants(JSContext *cx, JSXML *xml, jsval id)
/*
* Protect nameqn's object and strings from GC by linking list to it
* temporarily. The newborn GC root for the last allocated object
* protects listobj, which protects list. Any other object allocations
* occurring beneath DescendantsHelper use local roots.
* temporarily. The cx->newborn[GCX_OBJECT] GC root protects listobj,
* which protects list. Any other object allocations occuring beneath
* DescendantsHelper use local roots.
*/
list->name = nameqn;
if (!js_EnterLocalRootScope(cx))
@@ -7182,7 +7182,9 @@ uint32 xml_serial;
JSXML *
js_NewXML(JSContext *cx, JSXMLClass xml_class)
{
JSXML *xml = js_NewGCXML(cx);
JSXML *xml;
xml = (JSXML *) js_NewGCXML(cx, GCX_XML);
if (!xml)
return NULL;