1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 # You can obtain one at http://mozilla.org/MPL/2.0/.
8 def generate(output
, dataFile
):
10 """/* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT */
11 #ifndef COMPOSITOR_ANIMATABLE_PROPERTY_LIST
12 #define COMPOSITOR_ANIMATABLE_PROPERTY_LIST { \\
16 def can_animate_on_compositor(p
):
17 return "CanAnimateOnCompositor" in p
.flags
and p
.type() != "alias"
19 properties
= runpy
.run_path(dataFile
)["data"]
20 properties
= filter(can_animate_on_compositor
, properties
.values())
24 output
.write(" eCSSProperty_{}, \\\n".format(p
.id))
28 output
.write("#endif /* COMPOSITOR_ANIMATABLE_PROPERTY_LIST */\n")
31 output
.write("#ifndef COMPOSITOR_ANIMATABLE_PROPERTY_LIST_LENGTH\n")
33 "#define COMPOSITOR_ANIMATABLE_PROPERTY_LIST_LENGTH {}\n".format(count
)
35 output
.write("#endif /* COMPOSITOR_ANIMATABLE_PROPERTY_LIST_LENGTH */\n")