Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -106,13 +106,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", rev = "0c7e8baf63b6714e7614834fadbc09710f3c3d27" }
servo_arc = { git = "https://github.com/lexmount/stylo", rev = "0c7e8baf63b6714e7614834fadbc09710f3c3d27" }
stylo = { git = "https://github.com/lexmount/stylo", rev = "0c7e8baf63b6714e7614834fadbc09710f3c3d27" }
stylo_atoms = { git = "https://github.com/lexmount/stylo", rev = "0c7e8baf63b6714e7614834fadbc09710f3c3d27" }
stylo_dom = { git = "https://github.com/lexmount/stylo", rev = "0c7e8baf63b6714e7614834fadbc09710f3c3d27" }
stylo_static_prefs = { git = "https://github.com/lexmount/stylo", rev = "0c7e8baf63b6714e7614834fadbc09710f3c3d27" }
stylo_traits = { git = "https://github.com/lexmount/stylo", rev = "0c7e8baf63b6714e7614834fadbc09710f3c3d27" }
selectors = { git = "https://github.com/lanyue-llk/stylo", rev = "0db9840e674f6ad45c4df06961501b1a26bd2827" }
servo_arc = { git = "https://github.com/lanyue-llk/stylo", rev = "0db9840e674f6ad45c4df06961501b1a26bd2827" }
stylo = { git = "https://github.com/lanyue-llk/stylo", rev = "0db9840e674f6ad45c4df06961501b1a26bd2827" }
stylo_atoms = { git = "https://github.com/lanyue-llk/stylo", rev = "0db9840e674f6ad45c4df06961501b1a26bd2827" }
stylo_dom = { git = "https://github.com/lanyue-llk/stylo", rev = "0db9840e674f6ad45c4df06961501b1a26bd2827" }
stylo_static_prefs = { git = "https://github.com/lanyue-llk/stylo", rev = "0db9840e674f6ad45c4df06961501b1a26bd2827" }
stylo_traits = { git = "https://github.com/lanyue-llk/stylo", rev = "0db9840e674f6ad45c4df06961501b1a26bd2827" }
svgtypes = { git = "https://github.com/lexmount/svgtypes", branch = "feat/strict-path-numbers" }
taffy = { git = "https://github.com/ldm0/taffy", rev = "645bf5a49df607a8bff34ec90c5343901d04f10e" }

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 @@ -105,7 +105,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 Down Expand Up @@ -135,8 +135,8 @@ pub use moli_renderer_v8::{
RendererServiceWorkerVersionStatus, RendererSetDocumentContentResult,
RendererSharedWorkerConsoleMessage, RendererSharedWorkerTargetEvent,
RendererSharedWorkerTargetInfo, RendererSyntheticResponseBody, RendererTextSearchMatch,
RendererTouchPoint, RendererVisualStateToken, RendererWindowDocumentSource,
RuntimeConsoleMessageSnapshot,
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 @@ -360,6 +360,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 @@ -3109,8 +3109,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