diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-04-21 10:47:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-21 08:47:39 +0000 |
commit | 70f19c749f6c0b3515a49d28bc837f34ae8d59a9 (patch) | |
tree | 8b0f664e53c8c0cd2ff98d5e91fef6bba78eaf0a /components/shared/compositing/lib.rs | |
parent | a0419faa8544712ba4afe981b5a83d61da71e323 (diff) | |
download | servo-70f19c749f6c0b3515a49d28bc837f34ae8d59a9.tar.gz servo-70f19c749f6c0b3515a49d28bc837f34ae8d59a9.zip |
compositing: Rename `WebView` to `WebViewRenderer` (#36574)
There is a `WebView` in libservo (new) and a `WebView` in compositing
(old). Nowadays, the "real" `WebView` is the one in the libservo. The
`WebView` in `compositing` is really about rendering the contents of a
`WebView` from libservo. In addition there is also a trait exposed by
the compositor called `RendererWebView` which is a way for the
compositor to talk to libservo without a circular dependency.
This changes does some renames to make things clearer and so that there
is One Less WebView™:
- `compositing::WebView` -> `compositing::WebViewRenderer` (this is the
same kind of naming as `ServoRenderer`).
- `compositing::RendererWebView` -> `compositing::WebViewTrait`
Testing: This is just a couple renames so should be covered by existing
tests.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/shared/compositing/lib.rs')
-rw-r--r-- | components/shared/compositing/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/shared/compositing/lib.rs b/components/shared/compositing/lib.rs index 7c2bd669d02..31371f87529 100644 --- a/components/shared/compositing/lib.rs +++ b/components/shared/compositing/lib.rs @@ -541,7 +541,7 @@ impl From<SerializableImageData> for ImageData { /// A trait that exposes the embedding layer's `WebView` to the Servo renderer. /// This is to prevent a dependency cycle between the renderer and the embedding /// layer. -pub trait RendererWebView { +pub trait WebViewTrait { fn id(&self) -> WebViewId; fn screen_geometry(&self) -> Option<ScreenGeometry>; fn set_animating(&self, new_value: bool); |