changed GetStyleData to return const pointers to style structs
new method GetMutableStyleData to get non-const pointer git-svn-id: svn://10.0.0.236/trunk@3317 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7238f94887
commit
ddb2f11c7f
@ -250,7 +250,7 @@ public:
|
||||
/**
|
||||
* Get the style data associated with this frame
|
||||
*/
|
||||
NS_IMETHOD GetStyleData(nsStyleStructID aSID, nsStyleStruct*& aStyleStruct) const = 0;
|
||||
NS_IMETHOD GetStyleData(nsStyleStructID aSID, const nsStyleStruct*& aStyleStruct) const = 0;
|
||||
|
||||
/**
|
||||
* Accessor functions for geometric and content parent.
|
||||
|
||||
@ -180,7 +180,13 @@ public:
|
||||
virtual nsIStyleContext* FindChildWithRules(nsISupportsArray* aRules) = 0;
|
||||
|
||||
// get a style data struct by ID, may return null
|
||||
virtual nsStyleStruct* GetData(nsStyleStructID aSID) = 0;
|
||||
virtual const nsStyleStruct* GetStyleData(nsStyleStructID aSID) = 0;
|
||||
|
||||
// get a style data struct by ID, may return null
|
||||
virtual nsStyleStruct* GetMutableStyleData(nsStyleStructID aSID) = 0;
|
||||
|
||||
// call this to prevent context from getting shared
|
||||
virtual void ForceUnique(void) = 0;
|
||||
|
||||
// call if you change style data after creation
|
||||
virtual void RecalcAutomaticData(nsIPresContext* aPresContext) = 0;
|
||||
|
||||
@ -250,7 +250,7 @@ public:
|
||||
/**
|
||||
* Get the style data associated with this frame
|
||||
*/
|
||||
NS_IMETHOD GetStyleData(nsStyleStructID aSID, nsStyleStruct*& aStyleStruct) const = 0;
|
||||
NS_IMETHOD GetStyleData(nsStyleStructID aSID, const nsStyleStruct*& aStyleStruct) const = 0;
|
||||
|
||||
/**
|
||||
* Accessor functions for geometric and content parent.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user