зеркало из https://github.com/mozilla/pjs.git
fix types and remember to initialize the grippy last highlight to none at creation. Fixes a problem where the first grippy in the toolbar was being drawn highlighted at create time.
This commit is contained in:
Родитель
bf42d23076
Коммит
eea4d6c4b8
|
@ -83,7 +83,7 @@ NS_NewToolboxFrame ( nsIFrame*& aNewFrame )
|
|||
// Init, if necessary
|
||||
//
|
||||
nsToolboxFrame :: nsToolboxFrame ( )
|
||||
: mSumOfToolbarHeights(0), mNumToolbars(0)
|
||||
: mSumOfToolbarHeights(0), mNumToolbars(0), mGrippyHilighted(kNoGrippyHilighted)
|
||||
{
|
||||
//*** anything?
|
||||
}
|
||||
|
|
|
@ -111,10 +111,10 @@ protected:
|
|||
nsCOMPtr<nsIStyleContext> mGrippyNormalStyle;
|
||||
nsCOMPtr<nsIStyleContext> mGrippyRolloverStyle;
|
||||
|
||||
PRUint32 mSumOfToolbarHeights;
|
||||
unsigned long mSumOfToolbarHeights;
|
||||
TabInfo mGrippies[10]; //*** make this a list or something!!!!!!
|
||||
PRUint32 mNumToolbars;
|
||||
PRUint32 mGrippyHilighted; // used to indicate which grippy the mouse is inside
|
||||
unsigned short mNumToolbars;
|
||||
short mGrippyHilighted; // used to indicate which grippy the mouse is inside
|
||||
|
||||
// pass-by-value not allowed for a toolbox because it corresponds 1-to-1
|
||||
// with an element in the UI.
|
||||
|
|
Загрузка…
Ссылка в новой задаче