mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement beginnings of joint session history
Fix backward navigation make use of history iterator Add frame iterator add different back logic cleanup navigation_info Add extra explanation for iter logic Remove forward history on full frame tree Rename navigation to traversal where appropriate check full tree for can go back/forward simplify frame iter logic remove FrameIterator cleanup history iter reduce amount of vec allocations removed extra parenthesis Remove history iterator cleanup after rebasing avoid recursive vec allocation remove full_frame_tree remove_forward_history_in_frame_tree -> clear_joint_session_future
This commit is contained in:
parent
4ae0897175
commit
f131818763
7 changed files with 328 additions and 201 deletions
|
@ -29,7 +29,7 @@ use layers::rendergl;
|
|||
use layers::rendergl::RenderContext;
|
||||
use layers::scene::Scene;
|
||||
use msg::constellation_msg::{Image, PixelFormat, Key, KeyModifiers, KeyState};
|
||||
use msg::constellation_msg::{LoadData, NavigationDirection, PipelineId};
|
||||
use msg::constellation_msg::{LoadData, TraversalDirection, PipelineId};
|
||||
use msg::constellation_msg::{PipelineIndex, PipelineNamespaceId, WindowSizeType};
|
||||
use profile_traits::mem::{self, ReportKind, Reporter, ReporterRequest};
|
||||
use profile_traits::time::{self, ProfilerCategory, profile};
|
||||
|
@ -1862,10 +1862,10 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
|
||||
fn on_navigation_window_event(&self, direction: WindowNavigateMsg) {
|
||||
let direction = match direction {
|
||||
windowing::WindowNavigateMsg::Forward => NavigationDirection::Forward(1),
|
||||
windowing::WindowNavigateMsg::Back => NavigationDirection::Back(1),
|
||||
windowing::WindowNavigateMsg::Forward => TraversalDirection::Forward(1),
|
||||
windowing::WindowNavigateMsg::Back => TraversalDirection::Back(1),
|
||||
};
|
||||
let msg = ConstellationMsg::Navigate(None, direction);
|
||||
let msg = ConstellationMsg::TraverseHistory(None, direction);
|
||||
if let Err(e) = self.constellation_chan.send(msg) {
|
||||
warn!("Sending navigation to constellation failed ({}).", e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue