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

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

Issue 2202173002: Refactoring: Make Resource::m_data private (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on hiroshige's review 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/fetch/DocumentResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 099ab741690132d2c62c5260dcc973d63f2f30fe..5df4c11ed2c7271481c98d59143bc8a547bbae10 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -89,7 +89,7 @@ const String CSSStyleSheetResource::sheetText(MIMETypeCheck mimeTypeCheck) const
{
ASSERT(!isPurgeable());
- if (!m_data || m_data->isEmpty() || !canUseSheet(mimeTypeCheck))
+ if (!data() || data()->isEmpty() || !canUseSheet(mimeTypeCheck))
return String();
if (!m_decodedSheetText.isNull())
@@ -102,7 +102,7 @@ const String CSSStyleSheetResource::sheetText(MIMETypeCheck mimeTypeCheck) const
void CSSStyleSheetResource::checkNotify()
{
// Decode the data to find out the encoding and keep the sheet text around during checkNotify()
- if (m_data)
+ if (data())
m_decodedSheetText = decodedText();
ResourceClientWalker<StyleSheetResourceClient> w(clients());
@@ -114,7 +114,7 @@ void CSSStyleSheetResource::checkNotify()
bool CSSStyleSheetResource::isSafeToUnlock() const
{
- return m_data->hasOneRef();
+ return data()->hasOneRef();
}
void CSSStyleSheetResource::destroyDecodedDataIfPossible()
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/DocumentResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698