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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImage.h

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/style/StyleFetchedImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.h b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
index 994f19e2f13f48ccdf565229e58fbae83ed0dbcf..d403563086eac9a7cc2e09794496ef480ef83a36 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
@@ -37,7 +37,7 @@ class StyleFetchedImage final : public StyleImage, private ResourceClient {
USING_PRE_FINALIZER(StyleFetchedImage, dispose);
USING_GARBAGE_COLLECTED_MIXIN(StyleFetchedImage);
public:
- static StyleFetchedImage* create(ImageResource* image, Document* document, const KURL& url)
+ static StyleFetchedImage* create(ImageResource* image, const Document& document, const KURL& url)
{
return new StyleFetchedImage(image, document, url);
}
@@ -65,12 +65,12 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- StyleFetchedImage(ImageResource*, Document*, const KURL&);
+ StyleFetchedImage(ImageResource*, const Document&, const KURL&);
void dispose();
Member<ImageResource> m_image;
- Member<Document> m_document;
+ Member<const Document> m_document;
const KURL m_url;
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/style/StyleFetchedImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698