зеркало из https://github.com/mozilla/pjs.git
made visible an int instead of bool
This commit is contained in:
Родитель
630bf20269
Коммит
e0eef219d9
|
@ -629,7 +629,7 @@ void StyleDisplayImpl::ResetFrom(const nsStyleDisplay* aParent, nsIPresContext*
|
|||
}
|
||||
else {
|
||||
mDirection = NS_STYLE_DIRECTION_LTR;
|
||||
mVisible = PR_TRUE;
|
||||
mVisible = NS_STYLE_VISIBILITY_VISIBLE;
|
||||
}
|
||||
mDisplay = NS_STYLE_DISPLAY_INLINE;
|
||||
mFloats = NS_STYLE_FLOAT_NONE;
|
||||
|
|
|
@ -1438,7 +1438,7 @@ void MapDeclarationInto(nsICSSDeclaration* aDeclaration,
|
|||
|
||||
// visibility: enum, inherit
|
||||
if (eCSSUnit_Enumerated == ourDisplay->mVisibility.GetUnit()) {
|
||||
display->mVisible = PRBool (NS_STYLE_VISIBILITY_VISIBLE == ourDisplay->mVisibility.GetIntValue());
|
||||
display->mVisible = ourDisplay->mVisibility.GetIntValue();
|
||||
}
|
||||
else if (eCSSUnit_Inherit == ourDisplay->mVisibility.GetUnit()) {
|
||||
display->mVisible = parentDisplay->mVisible;
|
||||
|
|
|
@ -164,7 +164,7 @@ struct nsStyleDisplay : public nsStyleStruct {
|
|||
PRUint8 mBreakType; // [reset] see nsStyleConsts.h NS_STYLE_CLEAR_*
|
||||
PRPackedBool mBreakBefore; // [reset]
|
||||
PRPackedBool mBreakAfter; // [reset]
|
||||
PRPackedBool mVisible; // [inherited]
|
||||
PRUint8 mVisible; // [inherited]
|
||||
PRUint8 mOverflow; // [reset] see nsStyleConsts.h
|
||||
|
||||
PRUint8 mClipFlags; // [reset] see nsStyleConsts.h
|
||||
|
|
|
@ -629,7 +629,7 @@ void StyleDisplayImpl::ResetFrom(const nsStyleDisplay* aParent, nsIPresContext*
|
|||
}
|
||||
else {
|
||||
mDirection = NS_STYLE_DIRECTION_LTR;
|
||||
mVisible = PR_TRUE;
|
||||
mVisible = NS_STYLE_VISIBILITY_VISIBLE;
|
||||
}
|
||||
mDisplay = NS_STYLE_DISPLAY_INLINE;
|
||||
mFloats = NS_STYLE_FLOAT_NONE;
|
||||
|
|
|
@ -1438,7 +1438,7 @@ void MapDeclarationInto(nsICSSDeclaration* aDeclaration,
|
|||
|
||||
// visibility: enum, inherit
|
||||
if (eCSSUnit_Enumerated == ourDisplay->mVisibility.GetUnit()) {
|
||||
display->mVisible = PRBool (NS_STYLE_VISIBILITY_VISIBLE == ourDisplay->mVisibility.GetIntValue());
|
||||
display->mVisible = ourDisplay->mVisibility.GetIntValue();
|
||||
}
|
||||
else if (eCSSUnit_Inherit == ourDisplay->mVisibility.GetUnit()) {
|
||||
display->mVisible = parentDisplay->mVisible;
|
||||
|
|
|
@ -1438,7 +1438,7 @@ void MapDeclarationInto(nsICSSDeclaration* aDeclaration,
|
|||
|
||||
// visibility: enum, inherit
|
||||
if (eCSSUnit_Enumerated == ourDisplay->mVisibility.GetUnit()) {
|
||||
display->mVisible = PRBool (NS_STYLE_VISIBILITY_VISIBLE == ourDisplay->mVisibility.GetIntValue());
|
||||
display->mVisible = ourDisplay->mVisibility.GetIntValue();
|
||||
}
|
||||
else if (eCSSUnit_Inherit == ourDisplay->mVisibility.GetUnit()) {
|
||||
display->mVisible = parentDisplay->mVisible;
|
||||
|
|
|
@ -629,7 +629,7 @@ void StyleDisplayImpl::ResetFrom(const nsStyleDisplay* aParent, nsIPresContext*
|
|||
}
|
||||
else {
|
||||
mDirection = NS_STYLE_DIRECTION_LTR;
|
||||
mVisible = PR_TRUE;
|
||||
mVisible = NS_STYLE_VISIBILITY_VISIBLE;
|
||||
}
|
||||
mDisplay = NS_STYLE_DISPLAY_INLINE;
|
||||
mFloats = NS_STYLE_FLOAT_NONE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче