mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Added AttributeToString and StringToAttribute methods
This commit is contained in:
parent
107b4e64b1
commit
1302b87842
@ -68,6 +68,14 @@ public:
|
||||
virtual void MapAttributesInto(nsIStyleContext* aContext,
|
||||
nsIPresContext* aPresContext) = 0;
|
||||
|
||||
virtual nsContentAttr AttributeToString(nsIAtom* aAttribute,
|
||||
nsHTMLValue& aValue,
|
||||
nsString& aResult) const = 0;
|
||||
|
||||
virtual nsContentAttr StringToAttribute(nsIAtom* aAttribute,
|
||||
const nsString& aValue,
|
||||
nsHTMLValue& aResult) = 0;
|
||||
|
||||
/**
|
||||
* Translate this piece of content to html. Note that this only
|
||||
* translates this content object, not any children it might
|
||||
|
@ -68,6 +68,14 @@ public:
|
||||
virtual void MapAttributesInto(nsIStyleContext* aContext,
|
||||
nsIPresContext* aPresContext) = 0;
|
||||
|
||||
virtual nsContentAttr AttributeToString(nsIAtom* aAttribute,
|
||||
nsHTMLValue& aValue,
|
||||
nsString& aResult) const = 0;
|
||||
|
||||
virtual nsContentAttr StringToAttribute(nsIAtom* aAttribute,
|
||||
const nsString& aValue,
|
||||
nsHTMLValue& aResult) = 0;
|
||||
|
||||
/**
|
||||
* Translate this piece of content to html. Note that this only
|
||||
* translates this content object, not any children it might
|
||||
|
Loading…
Reference in New Issue
Block a user