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

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

Issue 2296083003: Refactoring: Remove CSSImageValue::m_isCachePending (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1d3deb897ab0a294d7068c37776c01a77498c677..6c6e404e02a0093b7e07d641260b6243d222f1f6 100644
--- a/third_party/WebKit/Source/core/css/CSSImageValue.h
+++ b/third_party/WebKit/Source/core/css/CSSImageValue.h
@@ -54,7 +54,7 @@ public:
}
~CSSImageValue();
- bool isCachePending() const { return m_isCachePending; }
+ bool isCachePending() const { return !m_cachedImage; }
StyleImage* cachedImage() const { ASSERT(!isCachePending()); return m_cachedImage.get(); }
StyleImage* cacheImage(Document*, CrossOriginAttributeValue = CrossOriginAttributeNotSet);
@@ -93,7 +93,6 @@ private:
// Cached image data.
mutable AtomicString m_absoluteURL;
- mutable bool m_isCachePending;
mutable Member<StyleImage> m_cachedImage;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698