mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Separate WebviewManager
from Webview
in compositor
and constellation
(#36302)
Create a separate file for `WebviewManager` to improve clarity. Testing: This change is just a refactor, so no new tests are needed. Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
parent
b4079b3ff3
commit
df9efde1c3
7 changed files with 253 additions and 239 deletions
|
@ -175,7 +175,7 @@ use crate::serviceworker::ServiceWorkerUnprivilegedContent;
|
|||
use crate::session_history::{
|
||||
JointSessionHistory, NeedsToReload, SessionHistoryChange, SessionHistoryDiff,
|
||||
};
|
||||
use crate::webview::WebViewManager;
|
||||
use crate::webview_manager::WebViewManager;
|
||||
|
||||
type PendingApprovalNavigations = HashMap<PipelineId, (LoadData, NavigationHistoryBehavior)>;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ mod pipeline;
|
|||
mod sandboxing;
|
||||
mod serviceworker;
|
||||
mod session_history;
|
||||
mod webview;
|
||||
mod webview_manager;
|
||||
|
||||
pub use crate::constellation::{Constellation, InitialConstellationState};
|
||||
pub use crate::logging::{FromCompositorLogger, FromScriptLogger};
|
||||
|
|
|
@ -87,7 +87,7 @@ mod test {
|
|||
BrowsingContextId, BrowsingContextIndex, PipelineNamespace, PipelineNamespaceId, WebViewId,
|
||||
};
|
||||
|
||||
use crate::webview::WebViewManager;
|
||||
use crate::webview_manager::WebViewManager;
|
||||
|
||||
fn id(namespace_id: u32, index: u32) -> WebViewId {
|
||||
WebViewId(BrowsingContextId {
|
Loading…
Add table
Add a link
Reference in a new issue