Index: third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp b/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp |
index faeb1f52624f3a9083e14cd4c6a68d4b6af6d91c..70c17aa36d26a7df52138edd09196094c67dd729 100644 |
--- a/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp |
@@ -45,20 +45,20 @@ |
CSSDefaultStyleSheets& CSSDefaultStyleSheets::instance() |
{ |
- DEFINE_STATIC_LOCAL(CSSDefaultStyleSheets, cssDefaultStyleSheets, (new CSSDefaultStyleSheets)); |
- return cssDefaultStyleSheets; |
+ DEFINE_STATIC_LOCAL(Persistent<CSSDefaultStyleSheets>, cssDefaultStyleSheets, (new CSSDefaultStyleSheets())); |
+ return *cssDefaultStyleSheets; |
} |
static const MediaQueryEvaluator& screenEval() |
{ |
- DEFINE_STATIC_LOCAL(MediaQueryEvaluator, staticScreenEval, (new MediaQueryEvaluator("screen"))); |
- return staticScreenEval; |
+ DEFINE_STATIC_LOCAL(Persistent<MediaQueryEvaluator>, staticScreenEval, (new MediaQueryEvaluator("screen"))); |
+ return *staticScreenEval; |
} |
static const MediaQueryEvaluator& printEval() |
{ |
- DEFINE_STATIC_LOCAL(MediaQueryEvaluator, staticPrintEval, (new MediaQueryEvaluator("print"))); |
- return staticPrintEval; |
+ DEFINE_STATIC_LOCAL(Persistent<MediaQueryEvaluator>, staticPrintEval, (new MediaQueryEvaluator("print"))); |
+ return *staticPrintEval; |
} |
static RawPtr<StyleSheetContents> parseUASheet(const String& str) |