| Index: Source/bindings/scripts/v8_union.py
|
| diff --git a/Source/bindings/scripts/v8_union.py b/Source/bindings/scripts/v8_union.py
|
| index 9d4fae6132ef654bde08bbfb2c4e7a71f452d2fb..310d80bc99a9c369e12d69b1dfd14c29f1d3c923 100644
|
| --- a/Source/bindings/scripts/v8_union.py
|
| +++ b/Source/bindings/scripts/v8_union.py
|
| @@ -11,6 +11,17 @@ UNION_H_INCLUDES = frozenset([
|
| 'platform/heap/Handle.h',
|
| ])
|
|
|
| +UNION_CPP_INCLUDES_BLACKLIST = frozenset([
|
| + # This header defines static functions needed to implement event handler
|
| + # attributes in interfaces that implement GlobalEventHandlers. They are not
|
| + # needed or used by UnionTypes*.cpp, so including the header causes
|
| + # compilation errors.
|
| + # FIXME: We should solve this problem in a way that doesn't involve special-
|
| + # casing a header like this.
|
| + 'core/dom/GlobalEventHandlers.h',
|
| +])
|
| +
|
| +
|
| cpp_includes = set()
|
| header_forward_decls = set()
|
|
|
| @@ -38,7 +49,7 @@ def union_context(union_types, interfaces_info):
|
| return {
|
| 'containers': [container_context(union_type, interfaces_info)
|
| for union_type in union_types_for_containers],
|
| - 'cpp_includes': sorted(cpp_includes),
|
| + 'cpp_includes': sorted(cpp_includes - UNION_CPP_INCLUDES_BLACKLIST),
|
| 'header_forward_decls': sorted(header_forward_decls),
|
| 'header_includes': sorted(UNION_H_INCLUDES),
|
| 'nullable_cpp_types': nullable_cpp_types,
|
|
|