mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Fixed the value of the background-image property when it's not set in the composite background property
This commit is contained in:
parent
5e2bf46334
commit
dc09f46996
@ -1913,8 +1913,7 @@ PRBool CSSParserImpl::ParseBackground(PRInt32* aErrorCode, nsICSSDeclaration* aD
|
||||
}
|
||||
if ((found & 2) == 0) {
|
||||
aDeclaration->AppendValue(kBackgroundNames[1],
|
||||
nsCSSValue(NS_STYLE_BG_IMAGE_NONE,
|
||||
eCSSUnit_Enumerated));
|
||||
nsCSSValue(eCSSUnit_None));
|
||||
}
|
||||
if ((found & 4) == 0) {
|
||||
aDeclaration->AppendValue(kBackgroundNames[2],
|
||||
|
@ -1913,8 +1913,7 @@ PRBool CSSParserImpl::ParseBackground(PRInt32* aErrorCode, nsICSSDeclaration* aD
|
||||
}
|
||||
if ((found & 2) == 0) {
|
||||
aDeclaration->AppendValue(kBackgroundNames[1],
|
||||
nsCSSValue(NS_STYLE_BG_IMAGE_NONE,
|
||||
eCSSUnit_Enumerated));
|
||||
nsCSSValue(eCSSUnit_None));
|
||||
}
|
||||
if ((found & 4) == 0) {
|
||||
aDeclaration->AppendValue(kBackgroundNames[2],
|
||||
|
@ -1913,8 +1913,7 @@ PRBool CSSParserImpl::ParseBackground(PRInt32* aErrorCode, nsICSSDeclaration* aD
|
||||
}
|
||||
if ((found & 2) == 0) {
|
||||
aDeclaration->AppendValue(kBackgroundNames[1],
|
||||
nsCSSValue(NS_STYLE_BG_IMAGE_NONE,
|
||||
eCSSUnit_Enumerated));
|
||||
nsCSSValue(eCSSUnit_None));
|
||||
}
|
||||
if ((found & 4) == 0) {
|
||||
aDeclaration->AppendValue(kBackgroundNames[2],
|
||||
|
Loading…
Reference in New Issue
Block a user