Index: Source/core/testing/InternalSettings.cpp |
diff --git a/Source/core/testing/InternalSettings.cpp b/Source/core/testing/InternalSettings.cpp |
index efacef8296b25082f8beaa493b72341ba837fb04..a3f778fdc6a20fd6f151eceeafb4d4cb38b57d21 100644 |
--- a/Source/core/testing/InternalSettings.cpp |
+++ b/Source/core/testing/InternalSettings.cpp |
@@ -76,6 +76,7 @@ InternalSettings::Backup::Backup(Settings* settings) |
, m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(RuntimeEnabledFeatures::pseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled()) |
, m_originalImageColorProfilesEnabled(RuntimeEnabledFeatures::imageColorProfilesEnabled()) |
, m_originalImageAnimationPolicy(settings->imageAnimationPolicy()) |
+ , m_originalScrollTopLeftInteropEnabled(RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) |
{ |
} |
@@ -99,6 +100,7 @@ void InternalSettings::Backup::restoreTo(Settings* settings) |
RuntimeEnabledFeatures::setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled); |
RuntimeEnabledFeatures::setImageColorProfilesEnabled(m_originalImageColorProfilesEnabled); |
settings->setImageAnimationPolicy(m_originalImageAnimationPolicy); |
+ RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(m_originalScrollTopLeftInteropEnabled); |
} |
#if ENABLE(OILPAN) |
@@ -467,4 +469,9 @@ void InternalSettings::setImageAnimationPolicy(const String& policy, ExceptionSt |
else |
exceptionState.throwDOMException(SyntaxError, "The image animation policy provided ('" + policy + "') is invalid."); |
} |
+ |
+void InternalSettings::setScrollTopLeftInteropEnabled(bool enabled) |
+{ |
+ RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(enabled); |
+} |
} |