Changeset 263293 in webkit
- Timestamp:
- Jun 19, 2020, 3:50:20 PM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/rendering/RenderThemeIOS.h (modified) (1 diff)
-
WebCore/rendering/RenderThemeIOS.mm (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r263285 r263293 1 2020-06-19 Chris Dumez <cdumez@apple.com> 2 3 Avoid initializing RenderTheme singleton unnecessarily in the UIProcess 4 https://bugs.webkit.org/show_bug.cgi?id=213406 5 6 Reviewed by Per Arne Vollan. 7 8 Avoid initializing RenderTheme singleton unnecessarily in the UIProcess. Instead, introduce 9 a static function to get the focus ring color on iOS. 10 11 * rendering/RenderThemeIOS.h: 12 * rendering/RenderThemeIOS.mm: 13 (WebCore::RenderThemeIOS::systemFocusRingColor): 14 (WebCore::RenderThemeIOS::platformFocusRingColor const): 15 1 16 2020-06-19 Andres Gonzalez <andresg_22@apple.com> 2 17 -
trunk/Source/WebCore/rendering/RenderThemeIOS.h
r263255 r263293 65 65 66 66 WEBCORE_EXPORT static void setFocusRingColor(const Color&); 67 68 #if ENABLE(FULL_KEYBOARD_ACCESS) 69 WEBCORE_EXPORT static Color systemFocusRingColor(); 70 #endif 67 71 68 72 private: -
trunk/Source/WebCore/rendering/RenderThemeIOS.mm
r263282 r263293 1146 1146 1147 1147 #if ENABLE(FULL_KEYBOARD_ACCESS) 1148 Color RenderThemeIOS::systemFocusRingColor() 1149 { 1150 if (!cachedFocusRingColor().hasValue()) { 1151 // FIXME: Should be using -keyboardFocusIndicatorColor. For now, work around <rdar://problem/50838886>. 1152 cachedFocusRingColor() = colorFromUIColor([PAL::getUIColorClass() systemBlueColor]); 1153 } 1154 return *cachedFocusRingColor(); 1155 } 1156 1148 1157 Color RenderThemeIOS::platformFocusRingColor(OptionSet<StyleColor::Options>) const 1149 1158 { 1150 if (cachedFocusRingColor().hasValue()) 1151 return *cachedFocusRingColor(); 1152 1153 // FIXME: Should be using -keyboardFocusIndicatorColor. For now, work around <rdar://problem/50838886>. 1154 return colorFromUIColor([PAL::getUIColorClass() systemBlueColor]); 1159 return systemFocusRingColor(); 1155 1160 } 1156 1161 #endif -
trunk/Source/WebKit/ChangeLog
r263289 r263293 1 2020-06-19 Chris Dumez <cdumez@apple.com> 2 3 Avoid initializing RenderTheme singleton unnecessarily in the UIProcess 4 https://bugs.webkit.org/show_bug.cgi?id=213406 5 6 Reviewed by Per Arne Vollan. 7 8 Avoid initializing RenderTheme singleton unnecessarily in the UIProcess. Instead, introduce 9 a static function to get the focus ring color on iOS. 10 11 * UIProcess/Cocoa/WebProcessPoolCocoa.mm: 12 (WebKit::WebProcessPool::platformInitializeWebProcess): 13 1 14 2020-06-19 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
r263289 r263293 462 462 parameters.supportsPictureInPicture = supportsPictureInPicture(); 463 463 parameters.cssValueToSystemColorMap = RenderThemeIOS::cssValueToSystemColorMap(); 464 parameters.focusRingColor = RenderTheme::singleton().focusRingColor(OptionSet<StyleColor::Options>()); 464 #if ENABLE(FULL_KEYBOARD_ACCESS) 465 parameters.focusRingColor = RenderThemeIOS::systemFocusRingColor(); 466 #endif 465 467 parameters.localizedDeviceModel = localizedDeviceModel(); 466 468 #endif
Note:
See TracChangeset
for help on using the changeset viewer.