Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp

Issue 2352193004: Document* -> Document& for loadSubimages and friends. (Closed)
Patch Set: Added constness Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698