Back out again (except indentation fix). b=236889

This commit is contained in:
dbaron%dbaron.org 2004-07-16 23:28:36 +00:00
parent f1aa7d5490
commit f2d5d6aac6
4 changed files with 4 additions and 6 deletions

View File

@ -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()) {

View File

@ -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());
}

View File

@ -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());
}

View File

@ -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()) {