diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-08 20:33:04 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-02-08 20:33:04 -0500 |
commit | 07fe89e26f05d1cb078f008d0b5d6a5212e37296 (patch) | |
tree | 081f8ea026b830e8bbd804c2406d9cdc19d5067f | |
parent | 4234b3a36b364da2d5dd4f243f2543a9d76057d8 (diff) | |
download | UXP-07fe89e26f05d1cb078f008d0b5d6a5212e37296.tar UXP-07fe89e26f05d1cb078f008d0b5d6a5212e37296.tar.gz UXP-07fe89e26f05d1cb078f008d0b5d6a5212e37296.tar.lz UXP-07fe89e26f05d1cb078f008d0b5d6a5212e37296.tar.xz UXP-07fe89e26f05d1cb078f008d0b5d6a5212e37296.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.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py index 8ee732cca..8985863e8 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)): |