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

Unified Diff: Source/WebKit/chromium/src/ChromeClientImpl.cpp

Issue 13854008: Unguard VIEWPORT (always enabled) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Repatch to ToT Created 7 years, 8 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
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/ViewportAnchor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/ChromeClientImpl.cpp
diff --git a/Source/WebKit/chromium/src/ChromeClientImpl.cpp b/Source/WebKit/chromium/src/ChromeClientImpl.cpp
index f2051dd2be35609bb69190d91e81ce174f6f6109..a0b2b9c84dad493ab1fb12b1a36a41acb3cb0ccc 100644
--- a/Source/WebKit/chromium/src/ChromeClientImpl.cpp
+++ b/Source/WebKit/chromium/src/ChromeClientImpl.cpp
@@ -651,7 +651,6 @@ static float getLayoutWidthForNonWideViewport(const ViewportArguments& arguments
void ChromeClientImpl::dispatchViewportPropertiesDidChange(const ViewportArguments& arguments) const
{
-#if ENABLE(VIEWPORT)
if (!m_webView->settings()->viewportEnabled() || !m_webView->isFixedLayoutModeEnabled() || !m_webView->client() || !m_webView->page())
return;
@@ -696,7 +695,6 @@ void ChromeClientImpl::dispatchViewportPropertiesDidChange(const ViewportArgumen
m_webView->setFixedLayoutSize(flooredIntSize(computed.layoutSize));
m_webView->setDeviceScaleFactor(deviceScaleFactor);
m_webView->setPageScaleFactorLimits(computed.minimumScale, computed.maximumScale);
-#endif
}
void ChromeClientImpl::print(Frame* frame)
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/ViewportAnchor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698