Commit 30208e42 authored by Hitoshi Yoshida's avatar Hitoshi Yoshida Committed by Commit Bot

CodeGen: Fix header paths of union objects

Bug: 839389
Change-Id: I282656edadc4c309878b7cd8e3b8695e2689d87f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2027012
Commit-Queue: Hitoshi Yoshida <peria@chromium.org>
Reviewed-by: default avatarYuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736277}
parent dfca41a5
...@@ -102,7 +102,13 @@ class PathManager(object): ...@@ -102,7 +102,13 @@ class PathManager(object):
assert components[0] == "core" assert components[0] == "core"
assert components[1] == "modules" assert components[1] == "modules"
self._is_cross_components = True self._is_cross_components = True
self._api_component = components[0] # Union does not have to support cross-component code generation
# because clients of IDL union must be on an upper or same layer to
# any of union members.
if isinstance(idl_definition, web_idl.Union):
self._api_component = components[1]
else:
self._api_component = components[0]
self._impl_component = components[1] self._impl_component = components[1]
else: else:
assert False assert False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment