changed the way map attributes into is connected
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user