Skip to content
Draft
23 changes: 12 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ curl-sys = { git = "https://github.com/lexmount/curl-rust", rev = "a0ea59f5ca1b1
cookie = { git = "https://github.com/ldm0/cookie-rs", branch = "priority" }
v8 = { path = "vendor/v8-152.2.0" }
deno_v8 = { path = "vendor/deno_v8-0.3.0" }
selectors = { git = "https://github.com/lexmount/stylo", branch = "moli" }
servo_arc = { git = "https://github.com/lexmount/stylo", branch = "moli" }
stylo = { git = "https://github.com/lexmount/stylo", branch = "moli" }
stylo_atoms = { git = "https://github.com/lexmount/stylo", branch = "moli" }
stylo_dom = { git = "https://github.com/lexmount/stylo", branch = "moli" }
stylo_static_prefs = { git = "https://github.com/lexmount/stylo", branch = "moli" }
stylo_traits = { git = "https://github.com/lexmount/stylo", branch = "moli" }
selectors = { git = "https://github.com/lanyue-llk/stylo", rev = "3d44ed30808997861946a3f4b84a20318c4d451c" }
servo_arc = { git = "https://github.com/lanyue-llk/stylo", rev = "3d44ed30808997861946a3f4b84a20318c4d451c" }
stylo = { git = "https://github.com/lanyue-llk/stylo", rev = "3d44ed30808997861946a3f4b84a20318c4d451c" }
stylo_atoms = { git = "https://github.com/lanyue-llk/stylo", rev = "3d44ed30808997861946a3f4b84a20318c4d451c" }
stylo_dom = { git = "https://github.com/lanyue-llk/stylo", rev = "3d44ed30808997861946a3f4b84a20318c4d451c" }
stylo_static_prefs = { git = "https://github.com/lanyue-llk/stylo", rev = "3d44ed30808997861946a3f4b84a20318c4d451c" }
stylo_traits = { git = "https://github.com/lanyue-llk/stylo", rev = "3d44ed30808997861946a3f4b84a20318c4d451c" }
taffy = { git = "https://github.com/ldm0/taffy", rev = "645bf5a49df607a8bff34ec90c5343901d04f10e" }

[workspace.lints.clippy]
Expand Down
6 changes: 3 additions & 3 deletions moli-core/src/page/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub use moli_renderer_v8::{
RendererDomFocusOutcome, RendererDomMutationEvent, RendererDomMutationEventBatch,
RendererDomSnapshotCaptureOptions, RendererDomSnapshotCapturePayload, RendererDragData,
RendererDragDataItem, RendererDraggedDirectory, RendererDraggedFile, RendererFrameToken,
RendererInputDispatchOutcome, RendererInspectorCommandRoute,
RendererInputDispatchOutcome, RendererInspectorCommandRoute, RendererInspectorOverlayCommand,
RendererJavaScriptDialogCompletion, RendererJavaScriptDialogId, RendererJavaScriptDialogResult,
RendererJavaScriptDialogSource, RendererLayoutMetrics, RendererLifecycleEpoch,
RendererLifecycleEventStamp, RendererLifecycleStartReason, RendererLifecycleTerminationStamp,
Expand All @@ -131,8 +131,8 @@ pub use moli_renderer_v8::{
RendererServiceWorkerTargetInfo, RendererServiceWorkerVersionStatus,
RendererSetDocumentContentResult, RendererSharedWorkerConsoleMessage,
RendererSharedWorkerTargetEvent, RendererSharedWorkerTargetInfo, RendererSyntheticResponseBody,
RendererTextSearchMatch, RendererTouchPoint, RendererVisualStateToken,
RendererWindowDocumentSource, RuntimeConsoleMessageSnapshot,
RendererTextSearchMatch, RendererTouchPoint, RendererVisionDeficiency,
RendererVisualStateToken, RendererWindowDocumentSource, RuntimeConsoleMessageSnapshot,
};
pub use moli_renderer_v8::{
RendererAppManifest, RendererAppManifestDisplayMode, RendererAppManifestError,
Expand Down
16 changes: 16 additions & 0 deletions moli-core/src/page/settings_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,22 @@ impl Page {
.await
}

pub fn start_set_inspector_overlay(
&self,
inspector_session_id: Option<String>,
command: super::RendererInspectorOverlayCommand,
) -> Result<PendingPageCommand> {
self.start_page_command(RendererPageCommand::SetInspectorOverlay {
inspector_session_id,
command,
})
}

pub fn finish_set_inspector_overlay(&mut self, completion: CompletedPageCommand) -> Result<()> {
let reply = self.finish_page_command(completion);
expect_page_reply!(reply, "set inspector overlay", "a unit reply", RendererPageReply::Unit => Ok(()),)
}

pub fn start_set_emulated_media(
&self,
overrides: &EmulatedMediaOverrides,
Expand Down
4 changes: 3 additions & 1 deletion moli-page-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3111,8 +3111,10 @@ pub struct RuntimeIsolatedWorldDefinition {
pub grant_universal_access: bool,
}

#[derive(Debug, Clone, Default, PartialEq, Eq)]
#[derive(Debug, Clone, Default, PartialEq)]
pub struct EmulatedMediaOverrides {
/// CSS environment preference, independent of media query feature overrides.
pub preferred_text_scale: Option<f32>,
pub media: Option<String>,
pub color_scheme: Option<String>,
pub reduced_motion: Option<String>,
Expand Down
1 change: 1 addition & 0 deletions moli-paint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2024"
license = "MIT OR Apache-2.0"

[dependencies]
image = { version = "0.25.10", default-features = false }
anyrender = { git = "https://github.com/ldm0/anyrender", rev = "18fd67d7a5622a9821d86434857fd69856912a43" }
anyrender_svg = { git = "https://github.com/ldm0/anyrender", rev = "18fd67d7a5622a9821d86434857fd69856912a43", default-features = false, features = ["text"] }
anyrender_vello_cpu = { git = "https://github.com/ldm0/anyrender", rev = "18fd67d7a5622a9821d86434857fd69856912a43", default-features = false, features = ["bitmap-glyphs", "filters"] }
Expand Down
2 changes: 2 additions & 0 deletions moli-paint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
//! layout state is copied into this crate.

mod raster;
mod vision;
pub use vision::VisionDeficiency;

pub use moli_image::RgbaImage as RasterImage;
pub use raster::{
Expand Down
Loading
Loading