mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
compositor Remove frame_tree_id
member (#35702)
This is unused. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
1966ab182f
commit
e670464fef
1 changed files with 0 additions and 18 deletions
|
@ -87,16 +87,6 @@ enum ReadyState {
|
||||||
WaitingForConstellationReply,
|
WaitingForConstellationReply,
|
||||||
ReadyToSaveImage,
|
ReadyToSaveImage,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
|
||||||
struct FrameTreeId(u32);
|
|
||||||
|
|
||||||
impl FrameTreeId {
|
|
||||||
pub fn next(&mut self) {
|
|
||||||
self.0 += 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Data that is shared by all WebView renderers.
|
/// Data that is shared by all WebView renderers.
|
||||||
pub struct ServoRenderer {
|
pub struct ServoRenderer {
|
||||||
/// Our top-level browsing contexts.
|
/// Our top-level browsing contexts.
|
||||||
|
@ -160,9 +150,6 @@ pub struct IOCompositor {
|
||||||
/// The time of the last zoom action has started.
|
/// The time of the last zoom action has started.
|
||||||
zoom_time: f64,
|
zoom_time: f64,
|
||||||
|
|
||||||
/// The current frame tree ID (used to reject old paint buffers)
|
|
||||||
frame_tree_id: FrameTreeId,
|
|
||||||
|
|
||||||
/// Touch input state machine
|
/// Touch input state machine
|
||||||
touch_handler: TouchHandler,
|
touch_handler: TouchHandler,
|
||||||
|
|
||||||
|
@ -344,7 +331,6 @@ impl IOCompositor {
|
||||||
max_viewport_zoom: None,
|
max_viewport_zoom: None,
|
||||||
zoom_action: false,
|
zoom_action: false,
|
||||||
zoom_time: 0f64,
|
zoom_time: 0f64,
|
||||||
frame_tree_id: FrameTreeId(0),
|
|
||||||
ready_to_save_state: ReadyState::Unknown,
|
ready_to_save_state: ReadyState::Unknown,
|
||||||
webrender: Some(state.webrender),
|
webrender: Some(state.webrender),
|
||||||
webrender_document: state.webrender_document,
|
webrender_document: state.webrender_document,
|
||||||
|
@ -1038,8 +1024,6 @@ impl IOCompositor {
|
||||||
self.send_root_pipeline_display_list();
|
self.send_root_pipeline_display_list();
|
||||||
self.create_or_update_pipeline_details_with_frame_tree(frame_tree, None);
|
self.create_or_update_pipeline_details_with_frame_tree(frame_tree, None);
|
||||||
self.reset_scroll_tree_for_unattached_pipelines(frame_tree);
|
self.reset_scroll_tree_for_unattached_pipelines(frame_tree);
|
||||||
|
|
||||||
self.frame_tree_id.next();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn remove_webview(&mut self, top_level_browsing_context_id: TopLevelBrowsingContextId) {
|
fn remove_webview(&mut self, top_level_browsing_context_id: TopLevelBrowsingContextId) {
|
||||||
|
@ -1053,8 +1037,6 @@ impl IOCompositor {
|
||||||
if let Some(pipeline_id) = webview.pipeline_id {
|
if let Some(pipeline_id) = webview.pipeline_id {
|
||||||
self.remove_pipeline_details_recursively(pipeline_id);
|
self.remove_pipeline_details_recursively(pipeline_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.frame_tree_id.next();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn move_resize_webview(&mut self, webview_id: TopLevelBrowsingContextId, rect: DeviceRect) {
|
pub fn move_resize_webview(&mut self, webview_id: TopLevelBrowsingContextId, rect: DeviceRect) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue