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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp

Issue 2329243002: Implement WTF::WeakPtr in terms of base::WeakPtr (Closed)
Patch Set: Thread-safety fix with comment 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/platform/fonts/FontFallbackList.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp b/third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp
index 2840a61a4330ecf81b1610978817d38652cd573d..ff4542688def0fed1367d8ee7029ea63c7518db4 100644
--- a/third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontFallbackList.cpp
@@ -74,7 +74,7 @@ void FontFallbackList::releaseFontData()
FontCache::fontCache()->releaseFontData(toSimpleFontData(m_fontList[i]));
}
}
- m_shapeCache.clear(); // Clear the weak pointer to the cache instance.
+ m_shapeCache.reset(); // Clear the weak pointer to the cache instance.
}
bool FontFallbackList::loadingCustomFonts() const

Powered by Google App Engine
This is Rietveld 408576698