Commit db8a51a
Prevent an upcoming circular dependency between native_value_traits_impl.h and script_promise.h
In a future CL (https://chromium-review.googlesource.com/c/chromium/src/+/5908900),
we will add logic to script_promise.h that requires including
native_value_traits_impl.h. But native_value_traits_impl.h already
includes script_promise.h, so that would be a circular dependency.
To resolve this:
* Move NativeValueTraits<IDLPromise<T>> to script_promise.h, so
that native_value_traits_impl.h no longer needs to include
script_promise.h, and add the native_value_traits_impl.h include
to script_promise.h
* This creates another circular dependency:
native_value_traits_impl.h -> script_iterator.h ->
script_promise.h -> native_value_traits_impl.h
Remove this circular dependency by having script_iterator.h
use forward-declares for ScriptPromise
* to_v8_traits.h was depending on a transitive include of
script_promise.h that is no longer there. Include it directly.
Change-Id: I507ecedce417309aaaf76f20c3f6684012708537
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5915794
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Commit-Queue: Nate Chapin <japhet@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1367805}1 parent c0a862c commit db8a51a
File tree
4 files changed
+19
-13
lines changed- third_party/blink/renderer/bindings/core/v8
4 files changed
+19
-13
lines changedLines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
916 | 915 | | |
917 | 916 | | |
918 | 917 | | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | 918 | | |
931 | 919 | | |
932 | 920 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments