Load background images from style instead of from painting. This makes us
start loading the background images when we resolve style on an object that needs them instead of when we scroll down and see it for the first time. Bug 57607, r=pavlov, sr=dbaron git-svn-id: svn://10.0.0.236/trunk@153725 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -415,7 +415,7 @@ PRBool nsCSSDeclaration::AppendCSSValueToString(nsCSSProperty aProperty, const n
|
||||
|
||||
aResult.Append(PRUnichar(')'));
|
||||
}
|
||||
else if (eCSSUnit_URL == unit) {
|
||||
else if (eCSSUnit_URL == unit || eCSSUnit_Image == unit) {
|
||||
aResult.Append(NS_LITERAL_STRING("url(") +
|
||||
nsDependentString(aValue.GetOriginalURLValue()) +
|
||||
NS_LITERAL_STRING(")"));
|
||||
@@ -441,6 +441,7 @@ PRBool nsCSSDeclaration::AppendCSSValueToString(nsCSSProperty aProperty, const n
|
||||
|
||||
case eCSSUnit_String: break;
|
||||
case eCSSUnit_URL: break;
|
||||
case eCSSUnit_Image: break;
|
||||
case eCSSUnit_Attr:
|
||||
case eCSSUnit_Counter:
|
||||
case eCSSUnit_Counters: aResult.Append(PRUnichar(')')); break;
|
||||
|
||||
Reference in New Issue
Block a user