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) |