Changeset 266017 in webkit
- Timestamp:
- Aug 21, 2020, 3:49:16 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
lldb/lldb_webkit.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r266012 r266017 1 2020-08-21 Simon Fraser <simon.fraser@apple.com> 2 3 Fix the Color/ExtendedColor lldb data provider 4 https://bugs.webkit.org/show_bug.cgi?id=215735 5 6 Reviewed by Darin Adler. 7 8 Fix the data provider for Color after Color and ExtendedColor internals changed. 9 10 * lldb/lldb_webkit.py: 11 (WebCoreColorProvider._to_string_extended): 12 (WebCoreColorProvider.to_string): 13 1 14 2020-08-21 Lauro Moura <lmoura@igalia.com> 2 15 -
trunk/Tools/lldb/lldb_webkit.py
r259721 r266017 468 468 extended_color = self.valobj.GetChildMemberWithName('m_colorData').GetChildMemberWithName('extendedColor').Dereference() 469 469 profile = extended_color.GetChildMemberWithName('m_colorSpace').GetValue() 470 if profile == ' ColorSpaceSRGB':470 if profile == 'SRGB': 471 471 profile = 'srgb' 472 elif profile == 'ColorSpaceDisplayP3': 472 elif profile == 'LinearRGB': 473 profile = 'linear-rgb' 474 elif profile == 'DisplayP3': 473 475 profile = 'display-p3' 474 476 else: 475 477 profile = 'unknown' 476 red = float(extended_color.GetChildMemberWithName('m_red').GetValue()) 477 green = float(extended_color.GetChildMemberWithName('m_green').GetValue()) 478 blue = float(extended_color.GetChildMemberWithName('m_blue').GetValue()) 479 alpha = float(extended_color.GetChildMemberWithName('m_alpha').GetValue()) 478 479 color_components = extended_color.GetChildMemberWithName('m_components') 480 std_array_elems = color_components.GetChildMemberWithName('components').GetChildMemberWithName('__elems_') 481 482 red = float(std_array_elems.GetChildAtIndex(0).GetValue()) 483 green = float(std_array_elems.GetChildAtIndex(1).GetValue()) 484 blue = float(std_array_elems.GetChildAtIndex(2).GetValue()) 485 alpha = float(std_array_elems.GetChildAtIndex(3).GetValue()) 480 486 return "color(%s %1.2f %1.2f %1.2f / %1.2f)" % (profile, red, green, blue, alpha) 481 487 482 488 def to_string(self): 483 rgba_and_flags = self.valobj.GetChildMemberWithName('m_colorData').GetChildMemberWithName(' rgbaAndFlags').GetValueAsUnsigned(0)489 rgba_and_flags = self.valobj.GetChildMemberWithName('m_colorData').GetChildMemberWithName('inlineColorAndFlags').GetValueAsUnsigned(0) 484 490 485 491 if self._is_extended(rgba_and_flags):
Note:
See TracChangeset
for help on using the changeset viewer.