mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 22:53:08 +00:00
made opacity inherit by default
This commit is contained in:
parent
47472b6c53
commit
99ed50bd06
@ -110,6 +110,7 @@ void StyleColorImpl::ResetFrom(const nsStyleColor* aParent, nsIPresContext* aPre
|
||||
{
|
||||
if (nsnull != aParent) {
|
||||
mColor = aParent->mColor;
|
||||
mOpacity = aParent->mOpacity;
|
||||
}
|
||||
else {
|
||||
if (nsnull != aPresContext) {
|
||||
@ -118,9 +119,9 @@ void StyleColorImpl::ResetFrom(const nsStyleColor* aParent, nsIPresContext* aPre
|
||||
else {
|
||||
mColor = NS_RGB(0x00, 0x00, 0x00);
|
||||
}
|
||||
mOpacity = 1.0f;
|
||||
}
|
||||
|
||||
mOpacity = 1.0f;
|
||||
|
||||
mBackgroundAttachment = NS_STYLE_BG_ATTACHMENT_SCROLL;
|
||||
mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT | NS_STYLE_BG_IMAGE_NONE;
|
||||
|
@ -110,6 +110,7 @@ void StyleColorImpl::ResetFrom(const nsStyleColor* aParent, nsIPresContext* aPre
|
||||
{
|
||||
if (nsnull != aParent) {
|
||||
mColor = aParent->mColor;
|
||||
mOpacity = aParent->mOpacity;
|
||||
}
|
||||
else {
|
||||
if (nsnull != aPresContext) {
|
||||
@ -118,9 +119,9 @@ void StyleColorImpl::ResetFrom(const nsStyleColor* aParent, nsIPresContext* aPre
|
||||
else {
|
||||
mColor = NS_RGB(0x00, 0x00, 0x00);
|
||||
}
|
||||
mOpacity = 1.0f;
|
||||
}
|
||||
|
||||
mOpacity = 1.0f;
|
||||
|
||||
mBackgroundAttachment = NS_STYLE_BG_ATTACHMENT_SCROLL;
|
||||
mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT | NS_STYLE_BG_IMAGE_NONE;
|
||||
|
@ -110,6 +110,7 @@ void StyleColorImpl::ResetFrom(const nsStyleColor* aParent, nsIPresContext* aPre
|
||||
{
|
||||
if (nsnull != aParent) {
|
||||
mColor = aParent->mColor;
|
||||
mOpacity = aParent->mOpacity;
|
||||
}
|
||||
else {
|
||||
if (nsnull != aPresContext) {
|
||||
@ -118,9 +119,9 @@ void StyleColorImpl::ResetFrom(const nsStyleColor* aParent, nsIPresContext* aPre
|
||||
else {
|
||||
mColor = NS_RGB(0x00, 0x00, 0x00);
|
||||
}
|
||||
mOpacity = 1.0f;
|
||||
}
|
||||
|
||||
mOpacity = 1.0f;
|
||||
|
||||
mBackgroundAttachment = NS_STYLE_BG_ATTACHMENT_SCROLL;
|
||||
mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT | NS_STYLE_BG_IMAGE_NONE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user