mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
Back out again (except indentation fix). b=236889
This commit is contained in:
parent
f1aa7d5490
commit
f2d5d6aac6
@ -3504,7 +3504,7 @@ nsRuleNode::ComputeListData(nsStyleStruct* aStartStruct,
|
||||
}
|
||||
|
||||
// list-style-image: url, none, inherit
|
||||
if (eCSSUnit_Image == listData.mImage.GetUnit()) {
|
||||
if (eCSSUnit_URL == listData.mImage.GetUnit()) {
|
||||
list->mListStyleImage = listData.mImage.GetURLValue();
|
||||
}
|
||||
else if (eCSSUnit_None == listData.mImage.GetUnit()) {
|
||||
|
@ -185,8 +185,7 @@ nsCSSCompressedDataBlock::MapRuleInfoInto(nsRuleData *aRuleData) const
|
||||
if (target->GetUnit() == eCSSUnit_Null) {
|
||||
const nsCSSValue *val = ValueAtCursor(cursor);
|
||||
NS_ASSERTION(val->GetUnit() != eCSSUnit_Null, "oops");
|
||||
if ((iProp == eCSSProperty_background_image ||
|
||||
iProp == eCSSProperty_list_style_image) &&
|
||||
if (iProp == eCSSProperty_background_image &&
|
||||
val->GetUnit() == eCSSUnit_URL) {
|
||||
val->StartImageLoad(aRuleData->mPresContext->GetDocument());
|
||||
}
|
||||
|
@ -185,8 +185,7 @@ nsCSSCompressedDataBlock::MapRuleInfoInto(nsRuleData *aRuleData) const
|
||||
if (target->GetUnit() == eCSSUnit_Null) {
|
||||
const nsCSSValue *val = ValueAtCursor(cursor);
|
||||
NS_ASSERTION(val->GetUnit() != eCSSUnit_Null, "oops");
|
||||
if ((iProp == eCSSProperty_background_image ||
|
||||
iProp == eCSSProperty_list_style_image) &&
|
||||
if (iProp == eCSSProperty_background_image &&
|
||||
val->GetUnit() == eCSSUnit_URL) {
|
||||
val->StartImageLoad(aRuleData->mPresContext->GetDocument());
|
||||
}
|
||||
|
@ -3504,7 +3504,7 @@ nsRuleNode::ComputeListData(nsStyleStruct* aStartStruct,
|
||||
}
|
||||
|
||||
// list-style-image: url, none, inherit
|
||||
if (eCSSUnit_Image == listData.mImage.GetUnit()) {
|
||||
if (eCSSUnit_URL == listData.mImage.GetUnit()) {
|
||||
list->mListStyleImage = listData.mImage.GetURLValue();
|
||||
}
|
||||
else if (eCSSUnit_None == listData.mImage.GetUnit()) {
|
||||
|
Loading…
Reference in New Issue
Block a user