Bug 279057 - Implement hasFeature for XForms. Patch by smaug, r=bryner/sr=jst

git-svn-id: svn://10.0.0.236/trunk@169429 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
doronr%us.ibm.com
2005-02-18 21:32:46 +00:00
parent e54571aca7
commit 86f11fca63
10 changed files with 180 additions and 18 deletions

View File

@@ -67,6 +67,13 @@ RegisterXFormsModule(nsIComponentManager *aCompMgr,
return NS_ERROR_FAILURE;
nsXPIDLCString previous;
nsresult rv =
catman->AddCategoryEntry(NS_DOMNS_FEATURE_PREFIX "org.w3c.xforms.dom",
"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",
@@ -85,6 +92,9 @@ UnregisterXFormsModule(nsIComponentManager *aCompMgr,
if (!catman)
return NS_ERROR_FAILURE;
catman->DeleteCategoryEntry(NS_DOMNS_FEATURE_PREFIX "org.w3c.xforms.dom",
"1.0", PR_TRUE);
return catman->DeleteCategoryEntry("agent-style-sheets",
"xforms stylesheet", PR_TRUE);
}