[chromium] Lower priority of preloaded images
[WebKit-https.git] / Source / WebCore / loader / ResourceLoader.cpp
index 7812ba0..be7e3ce 100644 (file)
@@ -364,6 +364,14 @@ void ResourceLoader::didFail(const ResourceError& error)
     releaseResources();
 }
 
+void ResourceLoader::didChangePriority(ResourceLoadPriority loadPriority)
+{
+    if (handle()) {
+        frameLoader()->client()->dispatchDidChangeResourcePriority(identifier(), loadPriority);
+        handle()->didChangePriority(loadPriority);
+    }
+}
+
 void ResourceLoader::cancel()
 {
     cancel(ResourceError());