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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageValue.h

Issue 1387113002: Change StyleResolverState.styleImage() to take a const CSSValue& (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODOs to replace the members with const members Created 5 years, 2 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 f3f827cf8dfb91c62cf5c422bb24d2d82fc02170..5ec97cdb92790aa4bd3cb4656906b34b305f06ff 100644
--- a/third_party/WebKit/Source/core/css/CSSImageValue.h
+++ b/third_party/WebKit/Source/core/css/CSSImageValue.h
@@ -51,7 +51,7 @@ public:
~CSSImageValue();
bool isCachePending() const { return m_isCachePending; }
- StyleFetchedImage* cachedImage() { ASSERT(!isCachePending()); return m_cachedImage.get(); }
+ StyleFetchedImage* cachedImage() const { ASSERT(!isCachePending()); return m_cachedImage.get(); }
StyleFetchedImage* cacheImage(Document*, const ResourceLoaderOptions&);
StyleFetchedImage* cacheImage(Document* document) { return cacheImage(document, ResourceFetcher::defaultResourceOptions()); }
@@ -78,7 +78,7 @@ public:
void setInitiator(const AtomicString& name) { m_initiatorName = name; }
DECLARE_TRACE_AFTER_DISPATCH();
- void restoreCachedResourceIfNeeded(Document&);
+ void restoreCachedResourceIfNeeded(Document&) const;
private:
CSSImageValue(const AtomicString& rawValue, const KURL&, StyleFetchedImage*);

Powered by Google App Engine
This is Rietveld 408576698