Index: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp |
index a9cece0fac4142bcbf56fc0013e133c534711868..e9b1379ff8d076e6fba0a0eb72e00cf6bb27d4e9 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp |
@@ -110,8 +110,8 @@ String createShorthandValue(Document* document, |
StyleSheetContents* styleSheetContents = |
StyleSheetContents::create(strictCSSParserContext()); |
String text = " div { " + shorthand + ": " + oldText + "; }"; |
- CSSParser::parseSheet(CSSParserContext(*document, nullptr), |
- styleSheetContents, text); |
+ CSSParser::parseSheet(CSSParserContext::create(*document), styleSheetContents, |
+ text); |
CSSStyleSheet* styleSheet = CSSStyleSheet::create(styleSheetContents); |
CSSStyleRule* rule = toCSSStyleRule(styleSheet->item(0)); |