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

Unified Diff: third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp

Issue 1662933003: Convert scroll anchoring flag to runtime-enabled feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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
Index: third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp b/third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp
index 26262fa8ab13ed3a4244d3cdb5119afce1e0a3d5..d76d18c14eaaea59beab3c1af1448bd9a3267691 100644
--- a/third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp
+++ b/third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp
@@ -8,13 +8,10 @@
namespace blink {
-static void enableScrollAnchoring(Settings& settings)
-{
- settings.setScrollAnchoringEnabled(true);
-}
-
class ScrollAnchorTest : public RenderingTest {
- FrameSettingOverrideFunction settingOverrider() const override { return enableScrollAnchoring; }
+public:
+ ScrollAnchorTest() { RuntimeEnabledFeatures::setScrollAnchoringEnabled(true); }
+ ~ScrollAnchorTest() { RuntimeEnabledFeatures::setScrollAnchoringEnabled(false); }
};
TEST_F(ScrollAnchorTest, Basic)
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.in ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698