From cf9ac0b791c0b2560d528ef32879011c6f8d29ed Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sat, 8 Feb 2020 20:33:04 -0500 Subject: [PATCH] Directly assign PrimitiveConversions.h to the generated binding of KeyframeAnimationOptions. This is a hack to deal UnifiedBindings trying to deal with an incomplete codegen implementation so it was worked around with a hack back in Firefox 30-something. If we have anymore of this non-sense crop up as stuff is added or removed from DOM then extend this conditional. Least until something better comes along. --- dom/bindings/Codegen.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py index 8ee732cca3..8985863e8f 100644 --- a/dom/bindings/Codegen.py +++ b/dom/bindings/Codegen.py @@ -1109,6 +1109,12 @@ class CGHeaders(CGWrapper): # Now find all the things we'll need as arguments because we # need to wrap or unwrap them. bindingHeaders = set() + + # KeyframeAnimationOptions.webidl is doing something VERY screwy and + # Unified Building really sucks so directly include this + if prefix == "KeyframeAnimationOptionsBinding": + bindingHeaders.add("mozilla/dom/PrimitiveConversions.h") + declareIncludes = set(declareIncludes) def addHeadersForType((t, dictionary)):