Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index bdc98433b10f5a2c8e856a0a2f6cc09153f40b83..bfdec11021d85bf8123c4f1ffe9cb11ce58292bf 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -980,7 +980,6 @@ String Internals::viewportAsText(Document* document, float, int availableWidth, |
// Update initial viewport size. |
IntSize initialViewportSize(availableWidth, availableHeight); |
document->page()->mainFrame()->view()->setFrameRect(IntRect(IntPoint::zero(), initialViewportSize)); |
- document->styleResolver()->viewportStyleResolver()->resolve(); |
ViewportArguments arguments = page->viewportArguments(); |
PageScaleConstraints constraints = arguments.resolve(initialViewportSize, 980 /* defaultLayoutWidthForNonMobilePages */); |