Title: [271018] trunk/Tools
Revision
271018
Author
[email protected]
Date
2020-12-20 18:23:22 -0800 (Sun, 20 Dec 2020)

Log Message

Fix the lldb WebCoreColorProvider
https://bugs.webkit.org/show_bug.cgi?id=220049

Reviewed by Sam Weinig.

Fix the lldb color provider after Color internals where shifted around.

* lldb/lldb_webkit.py:
(WebCoreColorProvider.to_string):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (271017 => 271018)


--- trunk/Tools/ChangeLog	2020-12-20 23:15:50 UTC (rev 271017)
+++ trunk/Tools/ChangeLog	2020-12-21 02:23:22 UTC (rev 271018)
@@ -1,3 +1,15 @@
+2020-12-20  Simon Fraser  <[email protected]>
+
+        Fix the lldb WebCoreColorProvider
+        https://bugs.webkit.org/show_bug.cgi?id=220049
+
+        Reviewed by Sam Weinig.
+
+        Fix the lldb color provider after Color internals where shifted around.
+
+        * lldb/lldb_webkit.py:
+        (WebCoreColorProvider.to_string):
+
 2020-12-18  Tim Horton  <[email protected]>
 
         iOS wheel events don't work on many websites

Modified: trunk/Tools/lldb/lldb_webkit.py (271017 => 271018)


--- trunk/Tools/lldb/lldb_webkit.py	2020-12-20 23:15:50 UTC (rev 271017)
+++ trunk/Tools/lldb/lldb_webkit.py	2020-12-21 02:23:22 UTC (rev 271018)
@@ -495,10 +495,10 @@
             return 'invalid'
 
         color = rgba_and_flags >> 32
-        red = (color >> 16) & 0xFF
-        green = (color >> 8) & 0xFF
-        blue = color & 0xFF
-        alpha = ((color >> 24) & 0xFF) / 255.0
+        red = (color >> 24) & 0xFF
+        green = (color >> 16) & 0xFF
+        blue = (color >> 8) & 0xFF
+        alpha = (color & 0xFF) / 255.0
 
         semantic = ' semantic' if self._is_semantic(rgba_and_flags) else ""
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to