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

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

Issue 1368613002: Replace RawPtr with RefPtr on StylePendingImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix image set caching logic 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/CSSCursorImageValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSCursorImageValue.h b/third_party/WebKit/Source/core/css/CSSCursorImageValue.h
index 8144a8b2c5c3f5bccedf53c295833406eb1ad333..c383dd6a1fcb2c089d7b355ac5d168db999b3e45 100644
--- a/third_party/WebKit/Source/core/css/CSSCursorImageValue.h
+++ b/third_party/WebKit/Source/core/css/CSSCursorImageValue.h
@@ -46,8 +46,9 @@ public:
String customCSSText() const;
bool updateIfSVGCursorIsUsed(Element*);
- StyleImage* cachedImage(Document*, float deviceScaleFactor);
- StyleImage* cachedOrPendingImage(float deviceScaleFactor);
+ bool isCachePending(float deviceScaleFactor) const;
+ StyleImage* cachedImage(float deviceScaleFactor);
+ StyleImage* cacheImage(Document*, float deviceScaleFactor);
#if !ENABLE(OILPAN)
void removeReferencedElement(SVGElement*);
@@ -68,8 +69,8 @@ private:
bool m_hotSpotSpecified;
IntPoint m_hotSpot;
- RefPtrWillBeMember<StyleImage> m_image;
- bool m_accessedImage;
+ bool m_isCachePending;
+ RefPtrWillBeMember<StyleImage> m_cachedImage;
#if !ENABLE(OILPAN)
HashSet<SVGElement*> m_referencedElements;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698