Title: [293464] branches/safari-613-branch
Revision
293464
Author
[email protected]
Date
2022-04-26 15:18:02 -0700 (Tue, 26 Apr 2022)

Log Message

Cherry-pick r292072. rdar://problem/80544133

    [Cocoa] Automatically relayout the page when new fonts are installed
    https://bugs.webkit.org/show_bug.cgi?id=238483
    <rdar://problem/80544133>

    Reviewed by Chris Dumez.

    Source/WebCore:

    This patch simply calls setNeedsRecalcStyleInAllFrames on every Page when we receive a
    kCTFontManagerRegisteredFontsChangedNotification.

    FontCache::invalidateAllFontCaches() can't do this directly because it's in platform/ and
    therefore isn't allowed to know what Pages are. Instead, this patch takes a process-global
    callback and calls that instead. This callback is set at initialization time.

    Test: fast/text/install-font-style-recalc.html

    * page/Page.cpp:
    (WebCore::m_attachmentElementClient):
    * platform/graphics/FontCache.cpp:
    (WebCore::Function<void):
    (WebCore::FontCache::registerFontCacheInvalidationCallback):
    (WebCore::FontCache::invalidateAllFontCaches):
    * platform/graphics/FontCache.h:

    LayoutTests:

    * fast/text/install-font-style-recalc-expected.txt: Added.
    * fast/text/install-font-style-recalc.html: Added.

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

Modified Paths

Diff

Modified: branches/safari-613-branch/LayoutTests/ChangeLog (293463 => 293464)


--- branches/safari-613-branch/LayoutTests/ChangeLog	2022-04-26 22:17:59 UTC (rev 293463)
+++ branches/safari-613-branch/LayoutTests/ChangeLog	2022-04-26 22:18:02 UTC (rev 293464)
@@ -1,5 +1,52 @@
 2022-04-22  Alan Coon  <[email protected]>
 
+        Cherry-pick r292072. rdar://problem/80544133
+
+    [Cocoa] Automatically relayout the page when new fonts are installed
+    https://bugs.webkit.org/show_bug.cgi?id=238483
+    <rdar://problem/80544133>
+    
+    Reviewed by Chris Dumez.
+    
+    Source/WebCore:
+    
+    This patch simply calls setNeedsRecalcStyleInAllFrames on every Page when we receive a
+    kCTFontManagerRegisteredFontsChangedNotification.
+    
+    FontCache::invalidateAllFontCaches() can't do this directly because it's in platform/ and
+    therefore isn't allowed to know what Pages are. Instead, this patch takes a process-global
+    callback and calls that instead. This callback is set at initialization time.
+    
+    Test: fast/text/install-font-style-recalc.html
+    
+    * page/Page.cpp:
+    (WebCore::m_attachmentElementClient):
+    * platform/graphics/FontCache.cpp:
+    (WebCore::Function<void):
+    (WebCore::FontCache::registerFontCacheInvalidationCallback):
+    (WebCore::FontCache::invalidateAllFontCaches):
+    * platform/graphics/FontCache.h:
+    
+    LayoutTests:
+    
+    * fast/text/install-font-style-recalc-expected.txt: Added.
+    * fast/text/install-font-style-recalc.html: Added.
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-03-29  Myles C. Maxfield  <[email protected]>
+
+            [Cocoa] Automatically relayout the page when new fonts are installed
+            https://bugs.webkit.org/show_bug.cgi?id=238483
+            <rdar://problem/80544133>
+
+            Reviewed by Chris Dumez.
+
+            * fast/text/install-font-style-recalc-expected.txt: Added.
+            * fast/text/install-font-style-recalc.html: Added.
+
+2022-04-22  Alan Coon  <[email protected]>
+
         Cherry-pick r291724. rdar://problem/91975589
 
     Expose the AX tree of PDFs loaded via iframes on the Mac

Modified: branches/safari-613-branch/LayoutTests/platform/ios/TestExpectations (293463 => 293464)


--- branches/safari-613-branch/LayoutTests/platform/ios/TestExpectations	2022-04-26 22:17:59 UTC (rev 293463)
+++ branches/safari-613-branch/LayoutTests/platform/ios/TestExpectations	2022-04-26 22:18:02 UTC (rev 293464)
@@ -3456,5 +3456,4 @@
 fast/text/design-system-ui-16.html [ Pass ]
 
 webkit.org/b/159755 fast/text/emoji-num-glyphs.html [ Pass ]
-
 fast/text/install-font-style-recalc.html [ Pass ]

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (293463 => 293464)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-04-26 22:17:59 UTC (rev 293463)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-04-26 22:18:02 UTC (rev 293464)
@@ -1,5 +1,66 @@
 2022-04-22  Alan Coon  <[email protected]>
 
+        Cherry-pick r292072. rdar://problem/80544133
+
+    [Cocoa] Automatically relayout the page when new fonts are installed
+    https://bugs.webkit.org/show_bug.cgi?id=238483
+    <rdar://problem/80544133>
+    
+    Reviewed by Chris Dumez.
+    
+    Source/WebCore:
+    
+    This patch simply calls setNeedsRecalcStyleInAllFrames on every Page when we receive a
+    kCTFontManagerRegisteredFontsChangedNotification.
+    
+    FontCache::invalidateAllFontCaches() can't do this directly because it's in platform/ and
+    therefore isn't allowed to know what Pages are. Instead, this patch takes a process-global
+    callback and calls that instead. This callback is set at initialization time.
+    
+    Test: fast/text/install-font-style-recalc.html
+    
+    * page/Page.cpp:
+    (WebCore::m_attachmentElementClient):
+    * platform/graphics/FontCache.cpp:
+    (WebCore::Function<void):
+    (WebCore::FontCache::registerFontCacheInvalidationCallback):
+    (WebCore::FontCache::invalidateAllFontCaches):
+    * platform/graphics/FontCache.h:
+    
+    LayoutTests:
+    
+    * fast/text/install-font-style-recalc-expected.txt: Added.
+    * fast/text/install-font-style-recalc.html: Added.
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-03-29  Myles C. Maxfield  <[email protected]>
+
+            [Cocoa] Automatically relayout the page when new fonts are installed
+            https://bugs.webkit.org/show_bug.cgi?id=238483
+            <rdar://problem/80544133>
+
+            Reviewed by Chris Dumez.
+
+            This patch simply calls setNeedsRecalcStyleInAllFrames on every Page when we receive a
+            kCTFontManagerRegisteredFontsChangedNotification.
+
+            FontCache::invalidateAllFontCaches() can't do this directly because it's in platform/ and
+            therefore isn't allowed to know what Pages are. Instead, this patch takes a process-global
+            callback and calls that instead. This callback is set at initialization time.
+
+            Test: fast/text/install-font-style-recalc.html
+
+            * page/Page.cpp:
+            (WebCore::m_attachmentElementClient):
+            * platform/graphics/FontCache.cpp:
+            (WebCore::Function<void):
+            (WebCore::FontCache::registerFontCacheInvalidationCallback):
+            (WebCore::FontCache::invalidateAllFontCaches):
+            * platform/graphics/FontCache.h:
+
+2022-04-22  Alan Coon  <[email protected]>
+
         Cherry-pick r291589. rdar://problem/90511155
 
     LayoutTests/imported/w3c:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to