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

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

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile Created 3 years, 11 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/InspectorStyleSheet.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp b/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
index 735e4e6127ba50f79deae67ae90ad789b5339d52..1c26f4b5442ead4afc4215edab00dc48bf854752 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
@@ -66,9 +66,8 @@ namespace {
using namespace blink;
-static CSSParserContext parserContextForDocument(Document* document) {
- return document ? CSSParserContext(*document, nullptr)
- : strictCSSParserContext();
+static const CSSParserContext* parserContextForDocument(Document* document) {
+ return document ? new CSSParserContext(*document) : strictCSSParserContext();
}
String findMagicComment(const String& content, const String& name) {

Powered by Google App Engine
This is Rietveld 408576698