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

Unified Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2125683002: Add option to force document level passive event listeners as a runtime feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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/web/WebRuntimeFeatures.cpp
diff --git a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
index e68345d9246e54a2423e6c6e9d47cf327b5ca4c1..0e707c4bd218be276979b01026dbd2f610ff0fe2 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -200,6 +200,11 @@ void WebRuntimeFeatures::enableParseHTMLOnMainThread(bool enable)
RuntimeEnabledFeatures::setParseHTMLOnMainThreadEnabled(enable);
}
+void WebRuntimeFeatures::enablePassiveDocumentEventListeners(bool enable)
+{
+ RuntimeEnabledFeatures::setPassiveDocumentEventListenersEnabled(enable);
+}
+
void WebRuntimeFeatures::enablePermissionsAPI(bool enable)
{
RuntimeEnabledFeatures::setPermissionsEnabled(enable);
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698