Make .style and computed style format rgb() values the same way. Bug
160247, r=peterv, sr=jst git-svn-id: svn://10.0.0.236/trunk@126442 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4924,16 +4924,14 @@ PRBool nsCSSDeclaration::AppendValueToString(nsCSSProperty aProperty, const nsCS
|
||||
|
||||
aResult.Append(NS_LITERAL_STRING("rgb("));
|
||||
|
||||
tmpStr.AppendInt(NS_GET_R(color), 10);
|
||||
aResult.Append(tmpStr);
|
||||
NS_NAMED_LITERAL_STRING(comma, ", ");
|
||||
|
||||
aResult.Append(PRUnichar(','));
|
||||
tmpStr.AppendInt(NS_GET_R(color), 10);
|
||||
aResult.Append(tmpStr + comma);
|
||||
|
||||
tmpStr.Truncate();
|
||||
tmpStr.AppendInt(NS_GET_G(color), 10);
|
||||
aResult.Append(tmpStr);
|
||||
|
||||
aResult.Append(PRUnichar(','));
|
||||
aResult.Append(tmpStr + comma);
|
||||
|
||||
tmpStr.Truncate();
|
||||
tmpStr.AppendInt(NS_GET_B(color), 10);
|
||||
|
||||
Reference in New Issue
Block a user