servo/components
Emilio Cobos Álvarez f27003c810 style: Teach style_derive's map_type_params about mapping self correctly.
Consider the following:

struct Complex<T> {
    something: T,
    #[compute(field_bound)]
    something_else: Generic<Self, T>,
}

That will generate:

impl<T> ToComputedValue for Complex<T>
where
    T: ToComputedValue,
    Generic<Self, T>: ToComputedValue<ComputedValue = Generic<Self, <T as ToComputedValue>::ComputedValue>>,
{
    // ...
}

That last clause is obviously incorrect. map_type_params correctly maps
the T, but it should know also about Self.

Ideally we could just do the same as for T and do:

    <Self as ToComputedValue>::ComputedValue

But that doesn't quite work, because we are in that implementation of
the trait, and the compiler rightfully complains about we don't yet
knowing the computed type. So we need to pass it explicitly, which is
simple enough, if a bit annoying.

Differential Revision: https://phabricator.services.mozilla.com/D83816
2021-02-26 16:44:05 +01:00
..
allocator
atoms Implement GPUUncapturedErrorEvent 2020-08-11 14:24:58 +05:30
background_hang_monitor improve reliability of hang monitor tests 2020-07-07 12:45:14 +08:00
bluetooth Pin git revisions of dependencies that aren't compatible in newer revisions. 2020-11-12 15:47:07 -05:00
bluetooth_traits Some Cargo.toml cleanups 2020-05-13 22:09:56 -07:00
canvas Fix deprecation warnings. 2020-11-12 15:47:08 -05:00
canvas_traits Support for webxr layer management 2020-06-28 16:37:45 -05:00
compositing Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
config Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
config_plugins Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
constellation Add creation url and Secure Contexts 2020-11-25 18:30:50 +00:00
deny_public_fields
derive_common style: Teach style_derive's map_type_params about mapping self correctly. 2021-02-26 16:44:05 +01:00
devtools Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
devtools_traits Console.Clear implemented 2020-07-29 22:19:18 +05:30
dom_struct
domobject_derive More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
embedder_traits UWP: support virtual keyboard 2020-07-02 10:57:34 +02:00
fallible More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
geometry
gfx Update truetype dependency. 2021-02-25 10:10:40 -05:00
gfx_traits Update webrender. 2020-06-11 14:07:39 -04:00
hashglobe More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
jstraceable_derive
layout Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
layout_2020 Revert "Revert "Update harfbuzz, freetype, unicode-script."" 2020-08-10 13:30:12 -04:00
layout_thread Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
layout_thread_2020 Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
layout_traits ensure clean shutdown of all threads running JS 2020-06-30 13:22:38 +08:00
malloc_size_of style: Update euclid in stylo. 2021-02-26 16:44:05 +01:00
media Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30
metrics Remove support for energy profiling 2020-06-04 16:39:08 +02:00
msg ensure clean shutdown of all threads running JS 2020-06-30 13:22:38 +08:00
net Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
net_traits Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
pixels More Cargo.toml updates 2020-05-30 18:18:57 -07:00
profile Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
profile_traits Remove support for heartbeats profiling 2020-06-04 22:53:56 +02:00
rand
range More Cargo.toml updates 2020-05-30 18:18:57 -07:00
remutex Fix rust's remutex source code link 2020-06-01 21:24:05 +09:00
script Auto merge of #28201 - servo:rustup, r=jdm 2021-02-25 18:40:03 -05:00
script_layout_interface ensure clean shutdown of all threads running JS 2020-06-30 13:22:38 +08:00
script_plugins Upgrade to rustc 1.52.0-nightly (a8486b64b 2021-02-24) 2021-02-25 20:31:43 +01:00
script_traits Add creation url and Secure Contexts 2020-11-25 18:30:50 +00:00
selectors Fix typo 2020-07-01 13:49:28 -07:00
servo Port some code to Python3 2021-02-18 09:35:46 -05:00
servo_arc More Cargo.toml updates 2020-05-30 18:18:57 -07:00
size_of_test
std_test_override
style style: Support full <image> syntax in list-style-image as per spec. 2021-02-26 16:44:05 +01:00
style_derive style: Teach style_derive's map_type_params about mapping self correctly. 2021-02-26 16:44:05 +01:00
style_traits style: Miscellaneous servo build fixes. 2020-06-04 01:50:36 +02:00
to_shmem style: Gracefully handle errors creating shared memory UA style sheets. 2020-06-04 01:50:36 +02:00
to_shmem_derive Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
url Update referrer computation 2020-07-02 14:29:26 +05:30
webdriver_server Fix warnings introduced in newer Rust Nightly 2021-02-25 15:36:03 +01:00
webgpu Pin git revisions of dependencies that aren't compatible in newer revisions. 2020-11-12 15:47:07 -05:00
webrender_surfman Auto merge of #27766 - jdm:embedding-blit, r=asajeffrey 2020-11-15 17:33:40 -05:00
webrender_traits Implement GPUSwapChain and GPUCanvasContext and interface with Webrender 2020-06-13 17:46:12 +05:30