Skip to content

Commit

Permalink
Using Core::Partition instead of Core::File to get Size()
Browse files Browse the repository at this point in the history
  • Loading branch information
VeithMetro committed Jun 19, 2024
1 parent 3798da3 commit bdf24c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebKitBrowser/WebKitImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2872,8 +2872,8 @@ static GSourceFuncs _handlerIntervention =
#if WEBKIT_CHECK_VERSION(2, 38, 0)
uint64_t indexedDBSizeBytes = 0; // No limit by default, use WebKit defaults (1G at the moment of writing)
if (_config.OriginStorageRatio.IsSet() && _config.OriginStorageRatio.Value() != 0) {
Core::File persistentPath(_service->PersistentPath());
indexedDBSizeBytes = ((persistentPath.Core::File::Size() * _config.OriginStorageRatio.Value()) / 100);
Core::Partition persistentPath(_service->PersistentPath().c_str());
indexedDBSizeBytes = ((persistentPath.Core::Partition::Size() * _config.OriginStorageRatio.Value()) / 100);
}

auto* websiteDataManager = webkit_website_data_manager_new(
Expand Down

0 comments on commit bdf24c5

Please sign in to comment.