Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index f95fbd23da09a707ec037253a7b93ffb01ad7ec4..71bc490904064927cdfe32420ee63396369efb80 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -34,6 +34,7 @@ |
#include "SkBitmap.h" |
#include "SkCanvas.h" |
+#include "core/UserAgentStyleSheets.h" |
#include "core/clipboard/DataTransfer.h" |
#include "core/css/StyleSheetContents.h" |
#include "core/css/resolver/StyleResolver.h" |
@@ -64,7 +65,6 @@ |
#include "core/rendering/compositing/RenderLayerCompositor.h" |
#include "core/testing/URLTestHelpers.h" |
#include "platform/DragImage.h" |
-#include "platform/PlatformResourceLoader.h" |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/UserGestureIndicator.h" |
#include "platform/geometry/FloatRect.h" |
@@ -152,7 +152,7 @@ |
void applyViewportStyleOverride(FrameTestHelpers::WebViewHelper* webViewHelper) |
{ |
RefPtrWillBeRawPtr<StyleSheetContents> styleSheet = StyleSheetContents::create(CSSParserContext(UASheetMode, 0)); |
- styleSheet->parseString(loadResourceAsASCIIString("viewportAndroid.css")); |
+ styleSheet->parseString(String(blink::viewportAndroidCss, sizeof(blink::viewportAndroidCss))); |
OwnPtrWillBeRawPtr<RuleSet> ruleSet = RuleSet::create(); |
ruleSet->addRulesFromSheet(styleSheet.get(), MediaQueryEvaluator("screen")); |