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

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

Issue 2290983003: CSSStyleSheetResource should cache decoded text instead of raw bytes (Closed)
Patch Set: rebased 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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLinkElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7d872d61eb4d8e05abb50a7a4fb738d8bfb81eeb..b44d350f39ba4ae2277bd6d6a3f16a46a5e67da1 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -231,7 +231,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:
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLinkElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698