changed the way map attributes into is connected

This commit is contained in:
peterl@netscape.com
1998-09-05 04:00:06 +00:00
parent 4f88cafa09
commit ee52a0c367
171 changed files with 2579 additions and 1251 deletions

View File

@@ -19,6 +19,7 @@
#include "nsHTMLContainer.h"
#include "nsFrame.h"
#include "nsHTMLIIDs.h"
#include "nsGenericHTMLElement.h"
// XXX rework this
@@ -33,6 +34,8 @@ public:
nsIStyleContext* aStyleContext,
nsIFrame*& aResult);
NS_IMETHOD GetAttributeMappingFunction(nsMapAttributesFunc& aMapFunc) const;
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
protected:
@@ -91,6 +94,22 @@ nsCommentNode::List(FILE* out, PRInt32 aIndent) const
return NS_OK;
}
static void
MapAttributesInto(nsIHTMLAttributes* aAttributes,
nsIStyleContext* aContext,
nsIPresContext* aPresContext)
{
nsGenericHTMLElement::MapCommonAttributesInto(aAttributes, aContext, aPresContext);
}
NS_IMETHODIMP
nsCommentNode::GetAttributeMappingFunction(nsMapAttributesFunc& aMapFunc) const
{
aMapFunc = &MapAttributesInto;
return NS_OK;
}
nsresult
NS_NewCommentNode(nsIHTMLContent** aInstancePtrResult,
nsIAtom* aTag, const nsString& aComment)