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.

git-svn-id: svn://10.0.0.236/trunk@11002 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
1998-09-25 00:51:45 +00:00
parent 5e8d2d6415
commit ae2d56cabc
31 changed files with 4919 additions and 645 deletions

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