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

Changeset 267677 in webkit


Ignore:
Timestamp:
Sep 27, 2020, 1:00:25 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r267215. rdar://problem/69594225

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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267215 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-610-branch/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-610-branch/Source/WebCore/PAL/ChangeLog

    r267049 r267677  
     12020-09-27  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r267215. rdar://problem/69594225
     4
     5    Per-app accent color overrides are broken
     6    https://bugs.webkit.org/show_bug.cgi?id=216674
     7    <rdar://problem/67745464>
     8   
     9    Reviewed by Wenson Hsieh.
     10   
     11    Source/WebCore/PAL:
     12   
     13    * pal/spi/mac/NSApplicationSPI.h:
     14   
     15    Source/WebKit:
     16   
     17    No new tests; I've no idea how to write a test that would have caught this;
     18    any test I can imagine would have also written to _accentColor and worked fine.
     19   
     20    * UIProcess/mac/PageClientImplMac.mm:
     21    (WebKit::PageClientImpl::accentColor):
     22    AppKit changed the meaning of the IPI. Use the correct version.
     23    We still write to _accentColor; it is now purely an override.
     24   
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2020-09-17  Tim Horton  <timothy_horton@apple.com>
     29
     30            Per-app accent color overrides are broken
     31            https://bugs.webkit.org/show_bug.cgi?id=216674
     32            <rdar://problem/67745464>
     33
     34            Reviewed by Wenson Hsieh.
     35
     36            * pal/spi/mac/NSApplicationSPI.h:
     37
    1382020-09-14  Alan Coon  <alancoon@apple.com>
    239
  • branches/safari-610-branch/Source/WebCore/PAL/pal/spi/mac/NSApplicationSPI.h

    r265264 r267677  
    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
  • branches/safari-610-branch/Source/WebKit/ChangeLog

    r267674 r267677  
     12020-09-27  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r267215. rdar://problem/69594225
     4
     5    Per-app accent color overrides are broken
     6    https://bugs.webkit.org/show_bug.cgi?id=216674
     7    <rdar://problem/67745464>
     8   
     9    Reviewed by Wenson Hsieh.
     10   
     11    Source/WebCore/PAL:
     12   
     13    * pal/spi/mac/NSApplicationSPI.h:
     14   
     15    Source/WebKit:
     16   
     17    No new tests; I've no idea how to write a test that would have caught this;
     18    any test I can imagine would have also written to _accentColor and worked fine.
     19   
     20    * UIProcess/mac/PageClientImplMac.mm:
     21    (WebKit::PageClientImpl::accentColor):
     22    AppKit changed the meaning of the IPI. Use the correct version.
     23    We still write to _accentColor; it is now purely an override.
     24   
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2020-09-17  Tim Horton  <timothy_horton@apple.com>
     29
     30            Per-app accent color overrides are broken
     31            https://bugs.webkit.org/show_bug.cgi?id=216674
     32            <rdar://problem/67745464>
     33
     34            Reviewed by Wenson Hsieh.
     35
     36            No new tests; I've no idea how to write a test that would have caught this;
     37            any test I can imagine would have also written to _accentColor and worked fine.
     38
     39            * UIProcess/mac/PageClientImplMac.mm:
     40            (WebKit::PageClientImpl::accentColor):
     41            AppKit changed the meaning of the IPI. Use the correct version.
     42            We still write to _accentColor; it is now purely an override.
     43
    1442020-09-27  Alan Coon  <alancoon@apple.com>
    245
  • branches/safari-610-branch/Source/WebKit/UIProcess/mac/PageClientImplMac.mm

    r265091 r267677  
    942942WebCore::Color PageClientImpl::accentColor()
    943943{
    944     return WebCore::colorFromNSColor([NSApp _accentColor]);
     944    return WebCore::colorFromNSColor([NSApp _effectiveAccentColor]);
    945945}
    946946#endif
Note: See TracChangeset for help on using the changeset viewer.