mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Previously, when the theme was set it was only set on currently active `Window`s. This change makes setting the `Theme` stateful. Now the `Constellation` tracks what theme is applied to a `WebView` and properly passes that value to new `Pipeline`s when they are constructed. In addition, the value is passed to layout when that is constructed as well. Testing: this change adds a unit test. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
25 lines
741 B
Rust
25 lines
741 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
#[macro_use]
|
|
mod tracing;
|
|
|
|
mod browsingcontext;
|
|
mod constellation;
|
|
mod constellation_webview;
|
|
mod event_loop;
|
|
mod logging;
|
|
mod pipeline;
|
|
mod process_manager;
|
|
mod sandboxing;
|
|
mod serviceworker;
|
|
mod session_history;
|
|
mod webview_manager;
|
|
|
|
pub use crate::constellation::{Constellation, InitialConstellationState};
|
|
pub use crate::logging::{FromEmbedderLogger, FromScriptLogger};
|
|
pub use crate::pipeline::UnprivilegedPipelineContent;
|
|
pub use crate::sandboxing::{UnprivilegedContent, content_process_sandbox_profile};
|