Index: third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl |
diff --git a/third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl |
index fa0067d08bb041f32e1c3299eda56213fbc6fb7b..c40f0c6075450a1ad2f124e3f5da1b4bef60f6ac 100644 |
--- a/third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl |
+++ b/third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl |
@@ -15,7 +15,7 @@ namespace blink { |
{{namespace}}* {{namespace}}{{suffix}}Factory::create(ExecutionContext* executionContext, const String& type) |
{ |
- {% for event in events %} |
+ {% for event in events if event|script_name|create_event_whitelist or event|script_name|create_event_legacy_whitelist %} |
{% if event|script_name|create_event_whitelist %} |
if (equalIgnoringCase(type, "{{event|script_name}}"){% if event.RuntimeEnabled %} && RuntimeEnabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %}) { |
{% else %} |