[webkit-changes] [WebKit/WebKit] 0d7c00: Use the highest QOS available when detecting conte...
Richard Robinson
noreply at github.com
Wed Feb 14 22:12:55 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0d7c0048ca22e42c1c974a3a832562d8fec781e0
https://github.com/WebKit/WebKit/commit/0d7c0048ca22e42c1c974a3a832562d8fec781e0
Author: Richard Robinson <richard_robinson2 at apple.com>
Date: 2024-02-14 (Wed, 14 Feb 2024)
Changed paths:
M Source/WebCore/PAL/pal/cocoa/DataDetectorsCoreSoftLink.h
M Source/WebCore/PAL/pal/cocoa/DataDetectorsCoreSoftLink.mm
M Source/WebCore/PAL/pal/spi/cocoa/DataDetectorsCoreSPI.h
M Source/WebCore/editing/cocoa/DataDetection.h
M Source/WebCore/editing/cocoa/DataDetection.mm
M Source/WebCore/loader/FrameLoader.cpp
M Source/WebCore/page/Page.h
M Source/WebKit/Shared/Cocoa/DataDetectionResult.h
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
Log Message:
-----------
Use the highest QOS available when detecting content with DataDetectors
https://bugs.webkit.org/show_bug.cgi?id=267879
rdar://118585870
Reviewed by Aditya Keerthi.
Use the highest QOS available when creating a DDScanner.
To facilitate this, make the content data detection mechanism async.
* Source/WebCore/PAL/pal/spi/cocoa/DataDetectorsCoreSPI.h:
* Source/WebCore/editing/cocoa/DataDetection.h:
* Source/WebCore/editing/cocoa/DataDetection.mm:
(WebCore::buildQuery):
(WebCore::workQueue):
(WebCore::parseAllResultRanges):
(WebCore::DDQueryFragmentCore::operator== const):
(WebCore::getFragmentsFromQuery):
(WebCore::processDataDetectorScannerResults):
(WebCore::DataDetection::detectContentInFrame):
(WebCore::DataDetection::detectContentInRange):
* Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::checkLoadCompleteForThisFrame):
* Source/WebKit/Shared/Cocoa/DataDetectionResult.h:
* Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInRangeHandle.mm:
(-[WKWebProcessPlugInRangeHandle detectDataWithTypes:context:]):
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::detectDataInFrame):
(WebKit::WebPage::detectDataInAllFrames):
Canonical link: https://commits.webkit.org/274699@main
More information about the webkit-changes
mailing list