Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1745)

Unified Diff: Source/core/testing/Internals.cpp

Issue 23185008: Reset viewport to implicit when @viewport is removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 */);
« Source/core/css/resolver/ViewportStyleResolver.cpp ('K') | « Source/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698