Load list-style-image in the style system rather than from frames. b=236889 r+sr=bzbarsky

This commit is contained in:
dbaron@dbaron.org
2004-07-29 20:07:25 +00:00
parent 15745b0b06
commit b8302c99bf
15 changed files with 131 additions and 282 deletions

View File

@@ -185,7 +185,8 @@ 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 &&
if ((iProp == eCSSProperty_background_image ||
iProp == eCSSProperty_list_style_image) &&
val->GetUnit() == eCSSUnit_URL) {
val->StartImageLoad(aRuleData->mPresContext->GetDocument());
}