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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageValue.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/css/CSSImageValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSImageValue.h b/third_party/WebKit/Source/core/css/CSSImageValue.h
index 6c6e404e02a0093b7e07d641260b6243d222f1f6..a75ad80692b2fca7f6999366601f8b8a05ba35f1 100644
--- a/third_party/WebKit/Source/core/css/CSSImageValue.h
+++ b/third_party/WebKit/Source/core/css/CSSImageValue.h
@@ -56,7 +56,7 @@ public:
bool isCachePending() const { return !m_cachedImage; }
StyleImage* cachedImage() const { ASSERT(!isCachePending()); return m_cachedImage.get(); }
- StyleImage* cacheImage(Document*, CrossOriginAttributeValue = CrossOriginAttributeNotSet);
+ StyleImage* cacheImage(const Document&, CrossOriginAttributeValue = CrossOriginAttributeNotSet);
const String& url() const { return m_absoluteURL; }
@@ -81,7 +81,7 @@ public:
void setInitiator(const AtomicString& name) { m_initiatorName = name; }
DECLARE_TRACE_AFTER_DISPATCH();
- void restoreCachedResourceIfNeeded(Document&) const;
+ void restoreCachedResourceIfNeeded(const Document&) const;
private:
CSSImageValue(const AtomicString& rawValue, const KURL&, StyleImage*);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageSetValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698