Index: third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp b/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp |
index 7b9538beff9308514907cef00d5a2b51f6faab33..d3fd5a61f14040075726502c54c8025c2e3571a5 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp |
@@ -136,7 +136,7 @@ void ElementStyleResources::loadPendingSVGDocuments(ComputedStyle* computedStyle |
StyleImage* ElementStyleResources::loadPendingImage(ComputedStyle* style, StylePendingImage* pendingImage, CrossOriginAttributeValue crossOrigin) |
{ |
if (CSSImageValue* imageValue = pendingImage->cssImageValue()) |
- return imageValue->cacheImage(m_document, crossOrigin); |
+ return imageValue->cacheImage(*m_document, crossOrigin); |
if (CSSPaintValue* paintValue = pendingImage->cssPaintValue()) { |
StyleGeneratedImage* image = StyleGeneratedImage::create(*paintValue); |
@@ -145,15 +145,15 @@ StyleImage* ElementStyleResources::loadPendingImage(ComputedStyle* style, StyleP |
} |
if (CSSImageGeneratorValue* imageGeneratorValue = pendingImage->cssImageGeneratorValue()) { |
- imageGeneratorValue->loadSubimages(m_document); |
+ imageGeneratorValue->loadSubimages(*m_document); |
return StyleGeneratedImage::create(*imageGeneratorValue); |
} |
if (CSSCursorImageValue* cursorImageValue = pendingImage->cssCursorImageValue()) |
- return cursorImageValue->cacheImage(m_document, m_deviceScaleFactor); |
+ return cursorImageValue->cacheImage(*m_document, m_deviceScaleFactor); |
if (CSSImageSetValue* imageSetValue = pendingImage->cssImageSetValue()) |
- return imageSetValue->cacheImage(m_document, m_deviceScaleFactor, crossOrigin); |
+ return imageSetValue->cacheImage(*m_document, m_deviceScaleFactor, crossOrigin); |
ASSERT_NOT_REACHED(); |
return nullptr; |