Bug 305763, Application control models (support for JS), r=aaronr+allan

git-svn-id: svn://10.0.0.236/trunk@182546 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi
2005-10-19 20:55:53 +00:00
parent 576be18b71
commit e31137e2e7
3 changed files with 44 additions and 2 deletions

View File

@@ -74,6 +74,13 @@ RegisterXFormsModule(nsIComponentManager *aCompMgr,
PR_TRUE, PR_TRUE, getter_Copies(previous));
NS_ENSURE_SUCCESS(rv, rv);
rv =
catman->AddCategoryEntry(NS_DOMNS_FEATURE_PREFIX NS_XFORMS_INSTANCE_OWNER,
"1.0",
NS_XTF_ELEMENT_FACTORY_CONTRACTID_PREFIX NS_NAMESPACE_XFORMS,
PR_TRUE, PR_TRUE, getter_Copies(previous));
NS_ENSURE_SUCCESS(rv, rv);
return catman->AddCategoryEntry("agent-style-sheets",
"xforms stylesheet",
"chrome://xforms/content/xforms.css",
@@ -95,6 +102,9 @@ UnregisterXFormsModule(nsIComponentManager *aCompMgr,
catman->DeleteCategoryEntry(NS_DOMNS_FEATURE_PREFIX "org.w3c.xforms.dom",
"1.0", PR_TRUE);
catman->DeleteCategoryEntry(NS_DOMNS_FEATURE_PREFIX NS_XFORMS_INSTANCE_OWNER,
"1.0", PR_TRUE);
return catman->DeleteCategoryEntry("agent-style-sheets",
"xforms stylesheet", PR_TRUE);
}