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

Unified Diff: third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp

Issue 2253853002: Remove SharedBuffer::unlock() and keep Resource's SharedBuffer always locked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use hasClientsOrObservers() for live_size 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
Index: third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
index 5df4c11ed2c7271481c98d59143bc8a547bbae10..763015bfe8f64e39a326e59f580e92bb117b0d73 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -87,8 +87,6 @@ void CSSStyleSheetResource::didAddClient(ResourceClient* c)
const String CSSStyleSheetResource::sheetText(MIMETypeCheck mimeTypeCheck) const
{
- ASSERT(!isPurgeable());
-
if (!data() || data()->isEmpty() || !canUseSheet(mimeTypeCheck))
return String();
@@ -112,11 +110,6 @@ void CSSStyleSheetResource::checkNotify()
m_decodedSheetText = String();
}
-bool CSSStyleSheetResource::isSafeToUnlock() const
-{
- return data()->hasOneRef();
-}
-
void CSSStyleSheetResource::destroyDecodedDataIfPossible()
{
if (!m_parsedStyleSheetCache)
« no previous file with comments | « third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h ('k') | third_party/WebKit/Source/core/fetch/FontResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698