diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-01-28 12:15:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-28 11:15:36 +0000 |
commit | a1cf0cbf86b93c863bc2b7693a382668d0f38e7c (patch) | |
tree | 2a3dd81905f68de153387cf4b298cabb034a5dfd /ports/servoshell/egl/ohos/simpleservo.rs | |
parent | 78b90030bdaf2af5deefdc065f3688bfa5c37fee (diff) | |
download | servo-a1cf0cbf86b93c863bc2b7693a382668d0f38e7c.tar.gz servo-a1cf0cbf86b93c863bc2b7693a382668d0f38e7c.zip |
libservo: Stop using `script_traits` in the embedding layer (#35185)
Many types used directly in the `libservo` API are in the
`script_traits` crate, which was created to break circular dependencies.
Move all API exposed types to `embedder_traits` which now contains types
exposed via the `libservo` embedding API. Also expose these at the root
of the `libservo` `servo` crate so that the API won't break when they
move around in the future.
The idea with `embedder_traits` in the future is that it contains types
that are available throughout servo because they are used in the
embedding API and thus should have minimal dependencies on other Servo
crates (a bit like `base`).
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'ports/servoshell/egl/ohos/simpleservo.rs')
-rw-r--r-- | ports/servoshell/egl/ohos/simpleservo.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ports/servoshell/egl/ohos/simpleservo.rs b/ports/servoshell/egl/ohos/simpleservo.rs index 5321190e296..aa3b9e2943f 100644 --- a/ports/servoshell/egl/ohos/simpleservo.rs +++ b/ports/servoshell/egl/ohos/simpleservo.rs @@ -11,15 +11,14 @@ use log::{debug, error, info}; use servo::base::id::WebViewId; use servo::compositing::windowing::EmbedderEvent; use servo::compositing::CompositeTarget; -use servo::embedder_traits::resources; -/// The EventLoopWaker::wake function will be called from any thread. -/// It will be called to notify embedder that some events are available, -/// and that perform_updates need to be called -pub use servo::embedder_traits::EventLoopWaker; use servo::euclid::Size2D; use servo::servo_url::ServoUrl; use servo::webrender_traits::SurfmanRenderingContext; -use servo::{self, Servo}; +/// The EventLoopWaker::wake function will be called from any thread. +/// It will be called to notify embedder that some events are available, +/// and that perform_updates need to be called +pub use servo::EventLoopWaker; +use servo::{self, resources, Servo}; use surfman::{Connection, SurfaceType}; use xcomponent_sys::{OH_NativeXComponent, OH_NativeXComponent_GetXComponentSize}; |