[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

cblu cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:38:31 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 883829e6f5f5b3545fc5f1c4cefc75a7fac1f533
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu May 6 22:50:17 2004 +0000

    	Added alpha to DOMRGBColor as an extension.
    
            Reviewed by dave.
    
            * kwq/DOM-CSS.mm:
            (-[DOMRGBColor alpha]): new
            * kwq/DOMExtensions.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6553 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 9f4404a..50fa7b7 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,13 @@
+2004-05-06  Chris Blumenberg  <cblu at apple.com>
+
+	Added alpha to DOMRGBColor as an extension.
+
+        Reviewed by dave.
+
+        * kwq/DOM-CSS.mm:
+        (-[DOMRGBColor alpha]): new
+        * kwq/DOMExtensions.h:
+
 2004-05-05  David Hyatt  <hyatt at apple.com>
 
 	Fix whitespace rendering for brs inside pres. The bug is 3640711.
diff --git a/WebCore/kwq/DOM-CSS.mm b/WebCore/kwq/DOM-CSS.mm
index 8ced6f5..e3bb6ba 100644
--- a/WebCore/kwq/DOM-CSS.mm
+++ b/WebCore/kwq/DOM-CSS.mm
@@ -1048,6 +1048,18 @@ void removeWrapperForRGB(QRgb value)
 
 @end
 
+ at implementation DOMRGBColor (DOMRGBColorExtensions)
+
+- (DOMCSSPrimitiveValue *)alpha
+{
+    QRgb rgb = reinterpret_cast<QRgb>(_internal);
+    float value = (float)qAlpha(rgb) / 0xFF;
+    return [DOMCSSPrimitiveValue _valueWithImpl:new CSSPrimitiveValueImpl(value, DOM::CSSPrimitiveValue::CSS_NUMBER)];
+    
+}
+
+ at end
+
 //------------------------------------------------------------------------------------------
 // DOMRect
 
diff --git a/WebCore/kwq/DOMExtensions.h b/WebCore/kwq/DOMExtensions.h
index f0ec0c2..aa985ab 100644
--- a/WebCore/kwq/DOMExtensions.h
+++ b/WebCore/kwq/DOMExtensions.h
@@ -23,6 +23,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
+#import "DOMCSS.h"
 #import "DOMHTML.h"
 
 @class DOMCSSStyleDeclaration;
@@ -58,3 +59,7 @@
 - (long)width;
 - (void)setWidth:(long)width;
 @end
+
+ at interface DOMRGBColor (DOMRGBColorExtensions)
+- (DOMCSSPrimitiveValue *)alpha;
+ at end

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list