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

Unified Diff: Source/core/testing/InternalSettings.cpp

Issue 279763002: Support a negation pseudo-class, :not(), in <content select> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update Created 6 years, 7 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/core/testing/InternalSettings.h ('k') | Source/core/testing/InternalSettings.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/InternalSettings.cpp
diff --git a/Source/core/testing/InternalSettings.cpp b/Source/core/testing/InternalSettings.cpp
index 0ae8d8e51c3d77d5c78f87d947e7182ac2e7fc6c..a5dd5d36c1c4607d8edf9fcc4d90cd80d9b16627 100644
--- a/Source/core/testing/InternalSettings.cpp
+++ b/Source/core/testing/InternalSettings.cpp
@@ -73,6 +73,7 @@ InternalSettings::Backup::Backup(Settings* settings)
, m_imagesEnabled(settings->imagesEnabled())
, m_defaultVideoPosterURL(settings->defaultVideoPosterURL())
, m_originalLayerSquashingEnabled(settings->layerSquashingEnabled())
+ , m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(RuntimeEnabledFeatures::pseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled())
{
}
@@ -94,6 +95,7 @@ void InternalSettings::Backup::restoreTo(Settings* settings)
settings->setDefaultVideoPosterURL(m_defaultVideoPosterURL);
settings->setLayerSquashingEnabled(m_originalLayerSquashingEnabled);
settings->genericFontFamilySettings().reset();
+ RuntimeEnabledFeatures::setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled);
}
#if ENABLE(OILPAN)
@@ -184,6 +186,11 @@ void InternalSettings::setExperimentalContentSecurityPolicyFeaturesEnabled(bool
RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(enabled);
}
+void InternalSettings::setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool enabled)
+{
+ RuntimeEnabledFeatures::setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(enabled);
+}
+
void InternalSettings::setOverlayScrollbarsEnabled(bool enabled)
{
RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enabled);
« no previous file with comments | « Source/core/testing/InternalSettings.h ('k') | Source/core/testing/InternalSettings.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698