Added new style interfaces. Implemented getStyle() on HTMLElement. Moved DOM fields into side struct for nsGenericHTMLElement. Implemented style declaration interface on proxy. Added new entry point to CSSParser and new methods to style declaration.

This commit is contained in:
vidur@netscape.com
1998-09-25 00:51:45 +00:00
parent c8e645cffd
commit 85ebec76c8
31 changed files with 4919 additions and 645 deletions
+14 -4
View File
@@ -518,8 +518,8 @@ nsHTMLDocument::GetApplets(nsIDOMHTMLCollection** aApplets)
NS_ADDREF(mApplets);
}
*aApplets = (nsIDOMHTMLCollection *)mImages;
NS_ADDREF(mImages);
*aApplets = (nsIDOMHTMLCollection *)mApplets;
NS_ADDREF(mApplets);
return NS_OK;
}
@@ -829,8 +829,18 @@ nsHTMLDocument::GetLastModified(nsString& aLastModified)
NS_IMETHODIMP
nsHTMLDocument::GetEmbeds(nsIDOMHTMLCollection** aEmbeds)
{
//XXX TBI
return NS_ERROR_NOT_IMPLEMENTED;
if (nsnull == mEmbeds) {
mEmbeds = new nsContentList(this, "EMBED");
if (nsnull == mEmbeds) {
return NS_ERROR_OUT_OF_MEMORY;
}
NS_ADDREF(mEmbeds);
}
*aEmbeds = (nsIDOMHTMLCollection *)mEmbeds;
NS_ADDREF(mEmbeds);
return NS_OK;
}
NS_IMETHODIMP