⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267215 in webkit


Ignore:
Timestamp:
Sep 17, 2020, 5:50:17 PM (6 years ago)
Author:
timothy_horton@apple.com
Message:

Per-app accent color overrides are broken
https://bugs.webkit.org/show_bug.cgi?id=216674
<rdar://problem/67745464>

Reviewed by Wenson Hsieh.

Source/WebCore/PAL:

  • pal/spi/mac/NSApplicationSPI.h:

Source/WebKit:

No new tests; I've no idea how to write a test that would have caught this;
any test I can imagine would have also written to _accentColor and worked fine.

  • UIProcess/mac/PageClientImplMac.mm:

(WebKit::PageClientImpl::accentColor):
AppKit changed the meaning of the IPI. Use the correct version.
We still write to _accentColor; it is now purely an override.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/PAL/ChangeLog

    r267150 r267215  
     12020-09-17  Tim Horton  <timothy_horton@apple.com>
     2
     3        Per-app accent color overrides are broken
     4        https://bugs.webkit.org/show_bug.cgi?id=216674
     5        <rdar://problem/67745464>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        * pal/spi/mac/NSApplicationSPI.h:
     10
    1112020-09-16  Alex Christensen  <achristensen@webkit.org>
    212
  • trunk/Source/WebCore/PAL/pal/spi/mac/NSApplicationSPI.h

    r265264 r267215  
    3838// Conditionally define this only for !USE_APPLE_INTERNAL_SDK when <rdar://problem/63864711> is fixed.
    3939@property (copy, setter=_setAccentColor:) NSColor *_accentColor;
     40@property (readonly, copy) NSColor *_effectiveAccentColor;
    4041
    4142@end
  • trunk/Source/WebKit/ChangeLog

    r267208 r267215  
     12020-09-17  Tim Horton  <timothy_horton@apple.com>
     2
     3        Per-app accent color overrides are broken
     4        https://bugs.webkit.org/show_bug.cgi?id=216674
     5        <rdar://problem/67745464>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        No new tests; I've no idea how to write a test that would have caught this;
     10        any test I can imagine would have also written to _accentColor and worked fine.
     11
     12        * UIProcess/mac/PageClientImplMac.mm:
     13        (WebKit::PageClientImpl::accentColor):
     14        AppKit changed the meaning of the IPI. Use the correct version.
     15        We still write to _accentColor; it is now purely an override.
     16
    1172020-09-17  Kate Cheney  <katherine_cheney@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/mac/PageClientImplMac.mm

    r266654 r267215  
    974974WebCore::Color PageClientImpl::accentColor()
    975975{
    976     return WebCore::colorFromNSColor([NSApp _accentColor]);
     976    return WebCore::colorFromNSColor([NSApp _effectiveAccentColor]);
    977977}
    978978#endif
Note: See TracChangeset for help on using the changeset viewer.