From 59dc161081215beff4bf9f22a0162167ef533087 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Mon, 28 Sep 1998 23:16:39 +0000 Subject: [PATCH] minor cleanup, removed references to obsolete table content factory methods. git-svn-id: svn://10.0.0.236/trunk@11297 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsHTMLParts.h | 35 ------------------- mozilla/layout/html/base/src/nsHTMLParts.h | 35 ------------------- .../layout/html/document/src/nsHTMLParts.cpp | 11 +++--- 3 files changed, 7 insertions(+), 74 deletions(-) diff --git a/mozilla/layout/generic/nsHTMLParts.h b/mozilla/layout/generic/nsHTMLParts.h index 2177f6cfb4c..886a065c64e 100644 --- a/mozilla/layout/generic/nsHTMLParts.h +++ b/mozilla/layout/generic/nsHTMLParts.h @@ -368,41 +368,6 @@ extern nsresult NS_NewHTMLContentSink(nsIHTMLContentSink** aInstancePtrResult, nsIURL* aURL, nsIWebShell* aWebShell); -/** Create a new table content object */ -extern nsresult -NS_NewTablePart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table row group object */ -extern nsresult -NS_NewTableRowGroupPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table row content object */ -extern nsresult -NS_NewTableRowPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table column group content object */ -extern nsresult -NS_NewTableColGroupPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table column content object */ -extern nsresult -NS_NewTableColPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table cell content object
*/ -extern nsresult -NS_NewTableCellPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table caption content object
*/ -extern nsresult -NS_NewTableCaptionPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - extern nsresult NS_NewHTMLEmbed(nsIHTMLContent** aInstancePtrResult, nsIAtom* aTag); diff --git a/mozilla/layout/html/base/src/nsHTMLParts.h b/mozilla/layout/html/base/src/nsHTMLParts.h index 2177f6cfb4c..886a065c64e 100644 --- a/mozilla/layout/html/base/src/nsHTMLParts.h +++ b/mozilla/layout/html/base/src/nsHTMLParts.h @@ -368,41 +368,6 @@ extern nsresult NS_NewHTMLContentSink(nsIHTMLContentSink** aInstancePtrResult, nsIURL* aURL, nsIWebShell* aWebShell); -/** Create a new table content object */ -extern nsresult -NS_NewTablePart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table row group object */ -extern nsresult -NS_NewTableRowGroupPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table row content object */ -extern nsresult -NS_NewTableRowPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table column group content object */ -extern nsresult -NS_NewTableColGroupPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table column content object */ -extern nsresult -NS_NewTableColPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table cell content object
*/ -extern nsresult -NS_NewTableCellPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - -/** Create a new table caption content object
*/ -extern nsresult -NS_NewTableCaptionPart(nsIHTMLContent** aInstancePtrResult, - nsIAtom* aTag); - extern nsresult NS_NewHTMLEmbed(nsIHTMLContent** aInstancePtrResult, nsIAtom* aTag); diff --git a/mozilla/layout/html/document/src/nsHTMLParts.cpp b/mozilla/layout/html/document/src/nsHTMLParts.cpp index d3de66a6859..a4120eb2450 100644 --- a/mozilla/layout/html/document/src/nsHTMLParts.cpp +++ b/mozilla/layout/html/document/src/nsHTMLParts.cpp @@ -134,20 +134,23 @@ NS_CreateHTMLElement(nsIHTMLContent** aInstancePtrResult, rv = NS_NewHTMLSpacer(aInstancePtrResult, atom); break; case eHTMLTag_table: - rv = NS_NewTablePart(aInstancePtrResult, atom); + rv = NS_NewHTMLTableElement(aInstancePtrResult, atom); break; case eHTMLTag_tbody: case eHTMLTag_tfoot: case eHTMLTag_thead: - rv = NS_NewTableRowGroupPart(aInstancePtrResult, atom); + rv = NS_NewHTMLTableSectionElement(aInstancePtrResult, atom); break; case eHTMLTag_td: case eHTMLTag_th: - rv = NS_NewTableCellPart(aInstancePtrResult, atom); + rv = NS_NewHTMLTableCellElement(aInstancePtrResult, atom); break; case eHTMLTag_tr: - rv = NS_NewTableRowPart(aInstancePtrResult, atom); + rv = NS_NewHTMLTableRowElement(aInstancePtrResult, atom); break; + case eHTMLTag_caption: + rv = NS_NewHTMLTableCaptionElement(aInstancePtrResult, atom); + break; case eHTMLTag_wbr: rv = NS_NewHTMLWordBreak(aInstancePtrResult, atom); break;