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

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

Issue 1373753002: Change CSSToStyleMap functions to take const CSSValue&s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 5 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.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageValue.cpp b/third_party/WebKit/Source/core/css/CSSImageValue.cpp
index 01455f06f1c8ada61edca3a1fbc7169f6bb63f8f..12a1915ba9d70c06b08ba20b9c4462c4d17b9a30 100644
--- a/third_party/WebKit/Source/core/css/CSSImageValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageValue.cpp
@@ -46,7 +46,7 @@ CSSImageValue::~CSSImageValue()
{
}
-StyleFetchedImage* CSSImageValue::cacheImage(Document* document, const ResourceLoaderOptions& options)
+StyleFetchedImage* CSSImageValue::cacheImage(Document* document, const ResourceLoaderOptions& options) const
{
ASSERT(document);
@@ -66,7 +66,7 @@ StyleFetchedImage* CSSImageValue::cacheImage(Document* document, const ResourceL
return m_cachedImage.get();
}
-void CSSImageValue::restoreCachedResourceIfNeeded(Document& document)
+void CSSImageValue::restoreCachedResourceIfNeeded(Document& document) const
{
if (m_isCachePending || !m_cachedImage || !document.fetcher())
return;
@@ -113,7 +113,7 @@ DEFINE_TRACE_AFTER_DISPATCH(CSSImageValue)
CSSValue::traceAfterDispatch(visitor);
}
-void CSSImageValue::reResolveURL(const Document& document)
+void CSSImageValue::reResolveURL(const Document& document) const
{
KURL url = document.completeURL(m_relativeURL);
AtomicString urlString(url.string());

Powered by Google App Engine
This is Rietveld 408576698