Index: Source/web/WebSettingsImpl.cpp |
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp |
index 3f6baeea3b619fc031b8c02f2e12ad6d4b9d89cb..cd08b3b69149cecf417b7aeea951b4dfa9fc7126 100644 |
--- a/Source/web/WebSettingsImpl.cpp |
+++ b/Source/web/WebSettingsImpl.cpp |
@@ -58,6 +58,7 @@ WebSettingsImpl::WebSettingsImpl(Settings* settings) |
, m_doubleTapToZoomEnabled(false) |
, m_supportDeprecatedTargetDensityDPI(false) |
, m_pinchOverlayScrollbarThickness(0) |
+ , m_anchorScrollPositionOnResize(false) |
{ |
ASSERT(settings); |
} |
@@ -681,4 +682,14 @@ void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled) |
m_settings->setPinchVirtualViewportEnabled(enabled); |
} |
+bool WebSettingsImpl::anchorScrollPositionOnResize() const |
+{ |
+ return m_anchorScrollPositionOnResize; |
+} |
+ |
+void WebSettingsImpl::setAnchorScrollPositionOnResize(bool enabled) |
+{ |
+ m_anchorScrollPositionOnResize = enabled; |
+} |
+ |
} // namespace WebKit |