Make LayoutThemeMacRefresh preserve Mac text selection/underline color
When the controls refresh is enabled, LayoutThemeMacRefresh is used instead of LayoutThemeMac. The former inherits from LayoutThemeDefault but implements no functionality of its own, whereas the latter inherits directly from LayoutTheme and implements various mac-specific styling. Most of LayoutThemeMac applies to the old form control implementations, and will eventually be discarded in favor of platform-agnostic implementations in LayoutThemeDefault. However, text selection color is also specified in LayoutThemeMac, and this was not replicated in LayoutThemeMacRefresh, with the result that switching on the controls refresh flag changes text selection color. This CL resolves the issue by reproducing the non-controls-related theming functions from LayoutThemeMac in LayoutThemeMacRefresh. The code duplication looks suspicious at first glance but should be acceptable for the time being because all of LayoutThemeMac is destined for deletion once the new controls have been permanently enabled. Bug: 994290 Change-Id: I1b881b2ca2fe718cd89a49535e36dd99ea65b9a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1947443Reviewed-by:Sanket Joshi <sajos@microsoft.com> Reviewed-by:
Kent Tamura <tkent@chromium.org> Commit-Queue: Dan Clark <daniec@microsoft.com> Cr-Commit-Position: refs/heads/master@{#723485}
Showing
3.55 KB

3.55 KB
3.54 KB
3.54 KB