Unreviewed, rolling out r205344.
[WebKit-https.git] / Source / WebCore / page / PageSerializer.cpp
index 5316d67..279b206 100644 (file)
@@ -331,7 +331,9 @@ void PageSerializer::retrieveResourcesForProperties(const StyleProperties* style
         if (!is<CSSImageValue>(*cssValue))
             continue;
 
-        auto* image = downcast<CSSImageValue>(*cssValue).cachedImage();
+        auto& styleImage = downcast<CSSImageValue>(*cssValue).styleImage();
+
+        auto* image = styleImage.cachedImage();
         if (!image)
             continue;