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

Changeset 275045 in webkit


Ignore:
Timestamp:
Mar 25, 2021, 10:16:06 AM (5 years ago)
Author:
Chris Dumez
Message:

Drop unnecessary Settings pre-warming in ProcessWarming::prewarmGlobally()
https://bugs.webkit.org/show_bug.cgi?id=223749

Reviewed by Antti Koivisto.

Drop unnecessary Settings pre-warming in ProcessWarming::prewarmGlobally(). Based on the comment,
it looks like the intention was to prewarm some font families. However, looking at the code, nothing
that gets populated is global and survives the destruction of the Settings object on the next line.
We don't even make any calls to CTFont.

  • page/ProcessWarming.cpp:

(WebCore::ProcessWarming::prewarmGlobally):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r275037 r275045  
     12021-03-25  Chris Dumez  <cdumez@apple.com>
     2
     3        Drop unnecessary Settings pre-warming in ProcessWarming::prewarmGlobally()
     4        https://bugs.webkit.org/show_bug.cgi?id=223749
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Drop unnecessary Settings pre-warming in ProcessWarming::prewarmGlobally(). Based on the comment,
     9        it looks like the intention was to prewarm some font families. However, looking at the code, nothing
     10        that gets populated is global and survives the destruction of the Settings object on the next line.
     11        We don't even make any calls to CTFont.
     12
     13        * page/ProcessWarming.cpp:
     14        (WebCore::ProcessWarming::prewarmGlobally):
     15
    1162021-03-25  Youenn Fablet  <youenn@apple.com>
    217
  • trunk/Source/WebCore/page/ProcessWarming.cpp

    r274985 r275045  
    3636#include "QualifiedName.h"
    3737#include "SVGNames.h"
    38 #include "Settings.h"
    3938#include "TelephoneNumberDetector.h"
    4039#include "UserAgentStyle.h"
     
    6968    initializeNames();
    7069   
    71     // Initializes default font families.
    72     Settings::create(nullptr);
    73    
    7470    // Prewarms user agent stylesheet.
    7571    Style::UserAgentStyle::initDefaultStyleSheet();
Note: See TracChangeset for help on using the changeset viewer.