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

git-svn-id: svn://10.0.0.236/trunk@160331 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2004-08-04 03:23:37 +00:00
parent dabfcb515f
commit f5d5060a41
20 changed files with 163 additions and 299 deletions

View File

@@ -185,9 +185,11 @@ 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());
val->StartImageLoad(aRuleData->mPresContext->GetDocument(),
iProp == eCSSProperty_background_image);
}
*target = *val;
if (iProp == eCSSProperty_font_family) {