summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-08 20:33:04 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:41:12 +0200
commit2e44ddb15ec960fb92e9458195041cbddc74f6ef (patch)
tree78b5bed14eba4168c5c27f858b244dc72fa0b776
parentda74d1f3f364280e3dc380b99eb2d1e65166d37d (diff)
downloadUXP-2e44ddb15ec960fb92e9458195041cbddc74f6ef.tar
UXP-2e44ddb15ec960fb92e9458195041cbddc74f6ef.tar.gz
UXP-2e44ddb15ec960fb92e9458195041cbddc74f6ef.tar.lz
UXP-2e44ddb15ec960fb92e9458195041cbddc74f6ef.tar.xz
UXP-2e44ddb15ec960fb92e9458195041cbddc74f6ef.zip
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.
-rw-r--r--dom/bindings/Codegen.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py
index 6b23e8225..e3cca63b6 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)):