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

Unified Diff: Source/web/WebSettingsImpl.cpp

Issue 22747002: setViewportEnabled on InternalSettings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Mac compile issue: removed unused member variable 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
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index 3f6baeea3b619fc031b8c02f2e12ad6d4b9d89cb..abcef7727f783597a3030abbff33ddb0447ba4cd 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -51,7 +51,6 @@ WebSettingsImpl::WebSettingsImpl(Settings* settings)
, m_showFPSCounter(false)
, m_showPaintRects(false)
, m_renderVSyncNotificationEnabled(false)
- , m_viewportEnabled(false)
, m_gestureTapHighlightEnabled(true)
, m_autoZoomFocusedNodeToLegibleScale(false)
, m_deferredImageDecodingEnabled(false)
@@ -591,6 +590,11 @@ bool WebSettingsImpl::touchEditingEnabled() const
return m_settings->touchEditingEnabled();
}
+bool WebSettingsImpl::viewportEnabled() const
+{
+ return m_settings->viewportEnabled();
+}
+
void WebSettingsImpl::setVisualWordMovementEnabled(bool enabled)
{
m_settings->setVisualWordMovementEnabled(enabled);
@@ -628,7 +632,7 @@ void WebSettingsImpl::setFixedPositionCreatesStackingContext(bool creates)
void WebSettingsImpl::setViewportEnabled(bool enabled)
{
- m_viewportEnabled = enabled;
+ m_settings->setViewportEnabled(enabled);
}
void WebSettingsImpl::setSyncXHRInDocumentsEnabled(bool enabled)
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698