Index: Source/core/inspector/InspectorPageAgent.cpp |
diff --git a/Source/core/inspector/InspectorPageAgent.cpp b/Source/core/inspector/InspectorPageAgent.cpp |
index 7849b9e039afd11272e487b8ede24d78ad6f41c4..f8182c2d517a14f836c7663befc2f48797c48e37 100644 |
--- a/Source/core/inspector/InspectorPageAgent.cpp |
+++ b/Source/core/inspector/InspectorPageAgent.cpp |
@@ -35,7 +35,6 @@ |
#include "bindings/core/v8/ScriptController.h" |
#include "bindings/core/v8/ScriptRegexp.h" |
#include "core/HTMLNames.h" |
-#include "core/UserAgentStyleSheets.h" |
#include "core/animation/AnimationTimeline.h" |
#include "core/css/StyleSheetContents.h" |
#include "core/css/resolver/StyleResolver.h" |
@@ -76,6 +75,7 @@ |
#include "platform/Cookie.h" |
#include "platform/JSONValues.h" |
#include "platform/MIMETypeRegistry.h" |
+#include "platform/PlatformResourceLoader.h" |
#include "platform/UserGestureIndicator.h" |
#include "platform/weborigin/SecurityOrigin.h" |
#include "wtf/CurrentTime.h" |
@@ -1428,7 +1428,7 @@ bool InspectorPageAgent::applyViewportStyleOverride(StyleResolver* resolver) |
return false; |
RefPtrWillBeRawPtr<StyleSheetContents> styleSheet = StyleSheetContents::create(CSSParserContext(UASheetMode, 0)); |
- styleSheet->parseString(String(viewportAndroidCss, sizeof(viewportAndroidCss))); |
+ styleSheet->parseString(loadResourceAsASCIIString("viewportAndroid.css")); |
OwnPtrWillBeRawPtr<RuleSet> ruleSet = RuleSet::create(); |
ruleSet->addRulesFromSheet(styleSheet.get(), MediaQueryEvaluator("screen")); |
resolver->viewportStyleResolver()->collectViewportRules(ruleSet.get(), ViewportStyleResolver::UserAgentOrigin); |