From d8a7abda69dc2e03a845cb053c28764babd5b9de Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Wed, 16 Apr 2025 18:58:52 +0200 Subject: libservo: Expose a `ServoBuilder` (#36549) Expose a `ServoBuilder` for easily creating Servo instances using default values. This change enables removing `EmbedderTraits`. Testing: This is covered by `Servo` unit tests. Signed-off-by: Martin Robinson Signed-off-by: Martin Robinson --- ports/servoshell/egl/ohos.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ports/servoshell/egl/ohos.rs') diff --git a/ports/servoshell/egl/ohos.rs b/ports/servoshell/egl/ohos.rs index fbdbe5395a1..236f1d842da 100644 --- a/ports/servoshell/egl/ohos.rs +++ b/ports/servoshell/egl/ohos.rs @@ -22,10 +22,9 @@ use ohos_ime::{AttachOptions, Ime, ImeProxy, RawTextEditorProxy}; use ohos_ime_sys::types::InputMethod_EnterKeyType; use servo::style::Zero; use servo::{ - AlertResponse, InputMethodType, LoadStatus, MediaSessionPlaybackState, PermissionRequest, - SimpleDialog, WebView, + AlertResponse, EventLoopWaker, InputMethodType, LoadStatus, MediaSessionPlaybackState, + PermissionRequest, SimpleDialog, WebView, }; -use simpleservo::EventLoopWaker; use xcomponent_sys::{ OH_NativeXComponent, OH_NativeXComponent_Callback, OH_NativeXComponent_GetKeyEvent, OH_NativeXComponent_GetKeyEventAction, OH_NativeXComponent_GetKeyEventCode, -- cgit v1.2.3