[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml/css
From:       Harri Porten <porten () kde ! org>
Date:       2008-08-24 20:21:41
Message-ID: 1219609301.176369.1403.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 851878 by porten:

Fixed rgba() string representation. Instead of #rrggbb
use rgb() as Firefox does.


 M  +6 -4      css_valueimpl.cpp  


--- trunk/KDE/kdelibs/khtml/css/css_valueimpl.cpp #851877:851878
@@ -1149,12 +1149,14 @@
 		if (m_value.rgbcolor == khtml::transparentColor)
 		    text = "transparent";
 		else
-		    text = "rgba(" + QString::number(qRed  (m_value.rgbcolor)) + ","
-				   + QString::number(qBlue (m_value.rgbcolor)) + ","
-				   + QString::number(qGreen(m_value.rgbcolor)) + ","
+		    text = "rgba(" + QString::number(qRed  (m_value.rgbcolor)) + ", "
+				   + QString::number(qGreen(m_value.rgbcolor)) + ", "
+				   + QString::number(qBlue (m_value.rgbcolor)) + ", "
 				   + QString::number(qAlpha(m_value.rgbcolor)/255.0) + ")";
 	    } else {
-		text = QColor(m_value.rgbcolor).name();
+                text = "rgb(" + QString::number(qRed  (m_value.rgbcolor)) + ", "
+                              + QString::number(qGreen(m_value.rgbcolor)) + ", "
+                              + QString::number(qBlue (m_value.rgbcolor)) + ")";
 	    }
 	    break;
         case CSSPrimitiveValue::CSS_PAIR:
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic