mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Use default text alignment; setup opacity properly
This commit is contained in:
parent
13cab9bf52
commit
024ff28d3a
@ -85,9 +85,11 @@ void StyleColorImpl::ResetFrom(const nsStyleColor* aParent, nsIPresContext* aPre
|
||||
{
|
||||
if (nsnull != aParent) {
|
||||
mColor = aParent->mColor;
|
||||
mOpacity = aParent->mOpacity;
|
||||
}
|
||||
else {
|
||||
mColor = NS_RGB(0, 0, 0);
|
||||
mOpacity.SetPercentValue(1.0F);
|
||||
}
|
||||
|
||||
mBackgroundAttachment = NS_STYLE_BG_ATTACHMENT_SCROLL;
|
||||
@ -459,7 +461,7 @@ void StyleTextImpl::ResetFrom(const nsStyleText* aParent, nsIPresContext* aPresC
|
||||
mWordSpacing = aParent->mWordSpacing;
|
||||
}
|
||||
else {
|
||||
mTextAlign = NS_STYLE_TEXT_ALIGN_LEFT;
|
||||
mTextAlign = NS_STYLE_TEXT_ALIGN_DEFAULT;
|
||||
mTextTransform = NS_STYLE_TEXT_TRANSFORM_NONE;
|
||||
mWhiteSpace = NS_STYLE_WHITESPACE_NORMAL;
|
||||
|
||||
|
@ -85,9 +85,11 @@ void StyleColorImpl::ResetFrom(const nsStyleColor* aParent, nsIPresContext* aPre
|
||||
{
|
||||
if (nsnull != aParent) {
|
||||
mColor = aParent->mColor;
|
||||
mOpacity = aParent->mOpacity;
|
||||
}
|
||||
else {
|
||||
mColor = NS_RGB(0, 0, 0);
|
||||
mOpacity.SetPercentValue(1.0F);
|
||||
}
|
||||
|
||||
mBackgroundAttachment = NS_STYLE_BG_ATTACHMENT_SCROLL;
|
||||
@ -459,7 +461,7 @@ void StyleTextImpl::ResetFrom(const nsStyleText* aParent, nsIPresContext* aPresC
|
||||
mWordSpacing = aParent->mWordSpacing;
|
||||
}
|
||||
else {
|
||||
mTextAlign = NS_STYLE_TEXT_ALIGN_LEFT;
|
||||
mTextAlign = NS_STYLE_TEXT_ALIGN_DEFAULT;
|
||||
mTextTransform = NS_STYLE_TEXT_TRANSFORM_NONE;
|
||||
mWhiteSpace = NS_STYLE_WHITESPACE_NORMAL;
|
||||
|
||||
|
@ -85,9 +85,11 @@ void StyleColorImpl::ResetFrom(const nsStyleColor* aParent, nsIPresContext* aPre
|
||||
{
|
||||
if (nsnull != aParent) {
|
||||
mColor = aParent->mColor;
|
||||
mOpacity = aParent->mOpacity;
|
||||
}
|
||||
else {
|
||||
mColor = NS_RGB(0, 0, 0);
|
||||
mOpacity.SetPercentValue(1.0F);
|
||||
}
|
||||
|
||||
mBackgroundAttachment = NS_STYLE_BG_ATTACHMENT_SCROLL;
|
||||
@ -459,7 +461,7 @@ void StyleTextImpl::ResetFrom(const nsStyleText* aParent, nsIPresContext* aPresC
|
||||
mWordSpacing = aParent->mWordSpacing;
|
||||
}
|
||||
else {
|
||||
mTextAlign = NS_STYLE_TEXT_ALIGN_LEFT;
|
||||
mTextAlign = NS_STYLE_TEXT_ALIGN_DEFAULT;
|
||||
mTextTransform = NS_STYLE_TEXT_TRANSFORM_NONE;
|
||||
mWhiteSpace = NS_STYLE_WHITESPACE_NORMAL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user