зеркало из https://github.com/mozilla/gecko-dev.git
added system color support
This commit is contained in:
Родитель
aea3107630
Коммит
5559820b53
|
@ -69,6 +69,7 @@ public:
|
|||
static const PRInt32 kBoxSizingKTable[];
|
||||
static const PRInt32 kCaptionSideKTable[];
|
||||
static const PRInt32 kClearKTable[];
|
||||
static const PRInt32 kColorKTable[];
|
||||
static const PRInt32 kContentKTable[];
|
||||
static const PRInt32 kCursorKTable[];
|
||||
static const PRInt32 kDirectionKTable[];
|
||||
|
|
|
@ -69,6 +69,7 @@ public:
|
|||
static const PRInt32 kBoxSizingKTable[];
|
||||
static const PRInt32 kCaptionSideKTable[];
|
||||
static const PRInt32 kClearKTable[];
|
||||
static const PRInt32 kColorKTable[];
|
||||
static const PRInt32 kContentKTable[];
|
||||
static const PRInt32 kCursorKTable[];
|
||||
static const PRInt32 kDirectionKTable[];
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
#include "nsCSSKeywords.h"
|
||||
#include "nsStyleConsts.h"
|
||||
|
||||
#include "nsILookAndFeel.h" // for system colors
|
||||
|
||||
#include "nsString.h"
|
||||
#include "nsAVLTree.h"
|
||||
|
||||
|
@ -232,6 +234,43 @@ const PRInt32 nsCSSProps::kClearKTable[] = {
|
|||
-1,-1
|
||||
};
|
||||
|
||||
const PRInt32 nsCSSProps::kColorKTable[] = {
|
||||
#if 0 // Rod: remove this #if 0 and fixup the eColor_XX enums when you update the look and feel
|
||||
eCSSKeyword_activeborder, eColor_activeborder,
|
||||
eCSSKeyword_activecaption, eColor_activecaption,
|
||||
eCSSKeyword_appworkspace, eColor_appworkspace,
|
||||
eCSSKeyword_background, eColor_background,
|
||||
eCSSKeyword_buttonface, eColor_buttonface,
|
||||
eCSSKeyword_buttonhighlight, eColor_buttonhighlight,
|
||||
eCSSKeyword_buttonshadow, eColor_buttonshadow,
|
||||
eCSSKeyword_buttontext, eColor_buttontext,
|
||||
eCSSKeyword_captiontext, eColor_captiontext,
|
||||
eCSSKeyword_graytext, eColor_graytext,
|
||||
eCSSKeyword_highlight, eColor_highlight,
|
||||
eCSSKeyword_highlighttext, eColor_highlighttext,
|
||||
eCSSKeyword_inactiveborder, eColor_inactiveborder,
|
||||
eCSSKeyword_inactivecaption, eColor_inactivecaption,
|
||||
eCSSKeyword_inactivecaptiontext, eColor_inactivecaptiontext,
|
||||
eCSSKeyword_infobackground, eColor_infobackground,
|
||||
eCSSKeyword_infotext, eColor_infotext,
|
||||
eCSSKeyword_menu, eColor_menu,
|
||||
eCSSKeyword_menutext, eColor_menutext,
|
||||
eCSSKeyword_scrollbar, eColor_scrollbar,
|
||||
eCSSKeyword_threeddarkshadow, eColor_threeddarkshadow,
|
||||
eCSSKeyword_threedface, eColor_threedface,
|
||||
eCSSKeyword_threedhighlight, eColor_threedhighlight,
|
||||
eCSSKeyword_threedlightshadow, eColor_threedlightshadow,
|
||||
eCSSKeyword_threedshadow, eColor_threedshadow,
|
||||
eCSSKeyword_window, eColor_window,
|
||||
eCSSKeyword_windowframe, eColor_windowframe,
|
||||
eCSSKeyword_windowtext, eColor_windowtext,
|
||||
#else // debugging set of colors
|
||||
eCSSKeyword_activeborder, nsILookAndFeel::eColor_WindowBackground,
|
||||
eCSSKeyword_activecaption, nsILookAndFeel::eColor_WindowForeground,
|
||||
#endif
|
||||
-1,-1
|
||||
};
|
||||
|
||||
const PRInt32 nsCSSProps::kContentKTable[] = {
|
||||
eCSSKeyword_open_quote, NS_STYLE_CONTENT_OPEN_QUOTE,
|
||||
eCSSKeyword_close_quote, NS_STYLE_CONTENT_CLOSE_QUOTE,
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
#include "nsCSSKeywords.h"
|
||||
#include "nsStyleConsts.h"
|
||||
|
||||
#include "nsILookAndFeel.h" // for system colors
|
||||
|
||||
#include "nsString.h"
|
||||
#include "nsAVLTree.h"
|
||||
|
||||
|
@ -232,6 +234,43 @@ const PRInt32 nsCSSProps::kClearKTable[] = {
|
|||
-1,-1
|
||||
};
|
||||
|
||||
const PRInt32 nsCSSProps::kColorKTable[] = {
|
||||
#if 0 // Rod: remove this #if 0 and fixup the eColor_XX enums when you update the look and feel
|
||||
eCSSKeyword_activeborder, eColor_activeborder,
|
||||
eCSSKeyword_activecaption, eColor_activecaption,
|
||||
eCSSKeyword_appworkspace, eColor_appworkspace,
|
||||
eCSSKeyword_background, eColor_background,
|
||||
eCSSKeyword_buttonface, eColor_buttonface,
|
||||
eCSSKeyword_buttonhighlight, eColor_buttonhighlight,
|
||||
eCSSKeyword_buttonshadow, eColor_buttonshadow,
|
||||
eCSSKeyword_buttontext, eColor_buttontext,
|
||||
eCSSKeyword_captiontext, eColor_captiontext,
|
||||
eCSSKeyword_graytext, eColor_graytext,
|
||||
eCSSKeyword_highlight, eColor_highlight,
|
||||
eCSSKeyword_highlighttext, eColor_highlighttext,
|
||||
eCSSKeyword_inactiveborder, eColor_inactiveborder,
|
||||
eCSSKeyword_inactivecaption, eColor_inactivecaption,
|
||||
eCSSKeyword_inactivecaptiontext, eColor_inactivecaptiontext,
|
||||
eCSSKeyword_infobackground, eColor_infobackground,
|
||||
eCSSKeyword_infotext, eColor_infotext,
|
||||
eCSSKeyword_menu, eColor_menu,
|
||||
eCSSKeyword_menutext, eColor_menutext,
|
||||
eCSSKeyword_scrollbar, eColor_scrollbar,
|
||||
eCSSKeyword_threeddarkshadow, eColor_threeddarkshadow,
|
||||
eCSSKeyword_threedface, eColor_threedface,
|
||||
eCSSKeyword_threedhighlight, eColor_threedhighlight,
|
||||
eCSSKeyword_threedlightshadow, eColor_threedlightshadow,
|
||||
eCSSKeyword_threedshadow, eColor_threedshadow,
|
||||
eCSSKeyword_window, eColor_window,
|
||||
eCSSKeyword_windowframe, eColor_windowframe,
|
||||
eCSSKeyword_windowtext, eColor_windowtext,
|
||||
#else // debugging set of colors
|
||||
eCSSKeyword_activeborder, nsILookAndFeel::eColor_WindowBackground,
|
||||
eCSSKeyword_activecaption, nsILookAndFeel::eColor_WindowForeground,
|
||||
#endif
|
||||
-1,-1
|
||||
};
|
||||
|
||||
const PRInt32 nsCSSProps::kContentKTable[] = {
|
||||
eCSSKeyword_open_quote, NS_STYLE_CONTENT_OPEN_QUOTE,
|
||||
eCSSKeyword_close_quote, NS_STYLE_CONTENT_CLOSE_QUOTE,
|
||||
|
|
|
@ -69,6 +69,7 @@ public:
|
|||
static const PRInt32 kBoxSizingKTable[];
|
||||
static const PRInt32 kCaptionSideKTable[];
|
||||
static const PRInt32 kClearKTable[];
|
||||
static const PRInt32 kColorKTable[];
|
||||
static const PRInt32 kContentKTable[];
|
||||
static const PRInt32 kCursorKTable[];
|
||||
static const PRInt32 kDirectionKTable[];
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
#include "nsCSSKeywords.h"
|
||||
#include "nsStyleConsts.h"
|
||||
|
||||
#include "nsILookAndFeel.h" // for system colors
|
||||
|
||||
#include "nsString.h"
|
||||
#include "nsAVLTree.h"
|
||||
|
||||
|
@ -232,6 +234,43 @@ const PRInt32 nsCSSProps::kClearKTable[] = {
|
|||
-1,-1
|
||||
};
|
||||
|
||||
const PRInt32 nsCSSProps::kColorKTable[] = {
|
||||
#if 0 // Rod: remove this #if 0 and fixup the eColor_XX enums when you update the look and feel
|
||||
eCSSKeyword_activeborder, eColor_activeborder,
|
||||
eCSSKeyword_activecaption, eColor_activecaption,
|
||||
eCSSKeyword_appworkspace, eColor_appworkspace,
|
||||
eCSSKeyword_background, eColor_background,
|
||||
eCSSKeyword_buttonface, eColor_buttonface,
|
||||
eCSSKeyword_buttonhighlight, eColor_buttonhighlight,
|
||||
eCSSKeyword_buttonshadow, eColor_buttonshadow,
|
||||
eCSSKeyword_buttontext, eColor_buttontext,
|
||||
eCSSKeyword_captiontext, eColor_captiontext,
|
||||
eCSSKeyword_graytext, eColor_graytext,
|
||||
eCSSKeyword_highlight, eColor_highlight,
|
||||
eCSSKeyword_highlighttext, eColor_highlighttext,
|
||||
eCSSKeyword_inactiveborder, eColor_inactiveborder,
|
||||
eCSSKeyword_inactivecaption, eColor_inactivecaption,
|
||||
eCSSKeyword_inactivecaptiontext, eColor_inactivecaptiontext,
|
||||
eCSSKeyword_infobackground, eColor_infobackground,
|
||||
eCSSKeyword_infotext, eColor_infotext,
|
||||
eCSSKeyword_menu, eColor_menu,
|
||||
eCSSKeyword_menutext, eColor_menutext,
|
||||
eCSSKeyword_scrollbar, eColor_scrollbar,
|
||||
eCSSKeyword_threeddarkshadow, eColor_threeddarkshadow,
|
||||
eCSSKeyword_threedface, eColor_threedface,
|
||||
eCSSKeyword_threedhighlight, eColor_threedhighlight,
|
||||
eCSSKeyword_threedlightshadow, eColor_threedlightshadow,
|
||||
eCSSKeyword_threedshadow, eColor_threedshadow,
|
||||
eCSSKeyword_window, eColor_window,
|
||||
eCSSKeyword_windowframe, eColor_windowframe,
|
||||
eCSSKeyword_windowtext, eColor_windowtext,
|
||||
#else // debugging set of colors
|
||||
eCSSKeyword_activeborder, nsILookAndFeel::eColor_WindowBackground,
|
||||
eCSSKeyword_activecaption, nsILookAndFeel::eColor_WindowForeground,
|
||||
#endif
|
||||
-1,-1
|
||||
};
|
||||
|
||||
const PRInt32 nsCSSProps::kContentKTable[] = {
|
||||
eCSSKeyword_open_quote, NS_STYLE_CONTENT_OPEN_QUOTE,
|
||||
eCSSKeyword_close_quote, NS_STYLE_CONTENT_CLOSE_QUOTE,
|
||||
|
|
|
@ -69,6 +69,7 @@ public:
|
|||
static const PRInt32 kBoxSizingKTable[];
|
||||
static const PRInt32 kCaptionSideKTable[];
|
||||
static const PRInt32 kClearKTable[];
|
||||
static const PRInt32 kColorKTable[];
|
||||
static const PRInt32 kContentKTable[];
|
||||
static const PRInt32 kCursorKTable[];
|
||||
static const PRInt32 kDirectionKTable[];
|
||||
|
|
Загрузка…
Ссылка в новой задаче