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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp

Issue 2290983003: CSSStyleSheetResource should cache decoded text instead of raw bytes (Closed)
Patch Set: add dcheck Created 4 years, 2 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/inspector/InspectorPageAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
index 6369883c41a8dd0295c3f6754d87b6f363615d1f..6c87e43277c67149a826c3aa85035bc1bc9ae360 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -230,7 +230,8 @@ bool InspectorPageAgent::cachedResourceContent(Resource* cachedResource,
switch (cachedResource->getType()) {
case Resource::CSSStyleSheet:
maybeEncodeTextContent(
- toCSSStyleSheetResource(cachedResource)->sheetText(),
+ toCSSStyleSheetResource(cachedResource)
+ ->sheetText(CSSStyleSheetResource::MIMETypeCheck::Lax),
cachedResource->resourceBuffer(), result, base64Encoded);
return true;
case Resource::Script:

Powered by Google App Engine
This is Rietveld 408576698