зеркало из https://github.com/mozilla/gecko-dev.git
minor tweaks to nsBasicStyleInfo struct.
This commit is contained in:
Родитель
6323c73a20
Коммит
78494faf03
|
@ -19,9 +19,13 @@
|
||||||
#ifndef nsHierarchicalDataModel_h___
|
#ifndef nsHierarchicalDataModel_h___
|
||||||
#define nsHierarchicalDataModel_h___
|
#define nsHierarchicalDataModel_h___
|
||||||
|
|
||||||
|
#include "nsFont.h"
|
||||||
|
#include "nsColor.h"
|
||||||
|
|
||||||
class nsHierarchicalDataItem;
|
class nsHierarchicalDataItem;
|
||||||
class nsDataModelWidget;
|
class nsDataModelWidget;
|
||||||
class nsIContent;
|
class nsIContent;
|
||||||
|
class nsIImage;
|
||||||
|
|
||||||
// Style info helper struct shared by most widgets.
|
// Style info helper struct shared by most widgets.
|
||||||
struct nsBasicStyleInfo
|
struct nsBasicStyleInfo
|
||||||
|
@ -29,13 +33,13 @@ struct nsBasicStyleInfo
|
||||||
nsFont font;
|
nsFont font;
|
||||||
nscolor foregroundColor;
|
nscolor foregroundColor;
|
||||||
nscolor backgroundColor;
|
nscolor backgroundColor;
|
||||||
nsIImage* pBackgroundImage;
|
nsIImage* pBackgroundImage; //*** com_auto_ptr?
|
||||||
|
|
||||||
|
nsIImage* BackgroundImage ( ) const { return pBackgroundImage; }
|
||||||
|
|
||||||
nsBasicStyleInfo(const nsFont& aFont)
|
nsBasicStyleInfo(const nsFont& aFont)
|
||||||
:font(aFont)
|
:font(aFont), pBackgroundImage(nsnull) { }
|
||||||
{
|
|
||||||
pBackgroundImage = nsnull;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------
|
// -----------------------------------------------------------------
|
||||||
|
|
Загрузка…
Ссылка в новой задаче