[core] continue loading style even if we mutate it
When we load a stale style from cache, and the user immediately starts mutating it, we should continue loading the style so that we'll get a fresh copy of the data into our cache and avoid perpetually showing the stale style.
This commit is contained in:
@@ -55,11 +55,6 @@ void Style::Impl::loadURL(const std::string& url_) {
|
||||
url = url_;
|
||||
|
||||
styleRequest = fileSource.request(Resource::style(url), [this](Response res) {
|
||||
// Once we get a fresh style, or the style is mutated, stop revalidating.
|
||||
if (res.isFresh() || mutated) {
|
||||
styleRequest.reset();
|
||||
}
|
||||
|
||||
// Don't allow a loaded, mutated style to be overwritten with a new version.
|
||||
if (mutated && loaded) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user