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

Side by Side Diff: third_party/WebKit/Source/platform/testing/RuntimeEnabledFeaturesTestHelpers.h

Issue 2318243002: Promote opaque fixed position elements. (Closed)
Patch Set: Use ScopedRuntimeEnabledFeatureForTest. Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RuntimeEnabledFeaturesTestHelpers_h 5 #ifndef RuntimeEnabledFeaturesTestHelpers_h
6 #define RuntimeEnabledFeaturesTestHelpers_h 6 #define RuntimeEnabledFeaturesTestHelpers_h
7 7
8 #include "platform/RuntimeEnabledFeatures.h" 8 #include "platform/RuntimeEnabledFeatures.h"
9 #include "wtf/Assertions.h" 9 #include "wtf/Assertions.h"
10 10
(...skipping 13 matching lines...) Expand all
24 { 24 {
25 CHECK_EQ(m_enabled, getter()); 25 CHECK_EQ(m_enabled, getter());
26 setter(m_original); 26 setter(m_original);
27 } 27 }
28 28
29 private: 29 private:
30 bool m_enabled; 30 bool m_enabled;
31 bool m_original; 31 bool m_original;
32 }; 32 };
33 33
34 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::compositeOpaq ueFixedPositionEnabled, RuntimeEnabledFeatures::setCompositeOpaqueFixedPositionE nabled> ScopedCompositeFixedPositionForTest;
34 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::compositorWor kerEnabled, RuntimeEnabledFeatures::setCompositorWorkerEnabled> ScopedCompositor WorkerForTest; 35 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::compositorWor kerEnabled, RuntimeEnabledFeatures::setCompositorWorkerEnabled> ScopedCompositor WorkerForTest;
35 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::rootLayerScro llingEnabled, RuntimeEnabledFeatures::setRootLayerScrollingEnabled> ScopedRootLa yerScrollingForTest; 36 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::rootLayerScro llingEnabled, RuntimeEnabledFeatures::setRootLayerScrollingEnabled> ScopedRootLa yerScrollingForTest;
36 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::slimmingPaint V2Enabled, RuntimeEnabledFeatures::setSlimmingPaintV2Enabled> ScopedSlimmingPain tV2ForTest; 37 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::slimmingPaint V2Enabled, RuntimeEnabledFeatures::setSlimmingPaintV2Enabled> ScopedSlimmingPain tV2ForTest;
37 38
38 } // namespace blink 39 } // namespace blink
39 40
40 #endif // RuntimeEnabledFeaturesTestHelpers_h 41 #endif // RuntimeEnabledFeaturesTestHelpers_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698