Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep same timestamp when replacing frame state #14664

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -236,6 +236,14 @@ impl FrameState {
frame_id: frame_id,
}
}

fn new_with_instant(instant: Instant, pipeline_id: PipelineId, frame_id: FrameId) -> FrameState {
FrameState {
instant: instant,
pipeline_id: pipeline_id,
frame_id: frame_id,
}
}
}

/// Stores the navigation context for a single frame in the frame tree.
@@ -266,7 +274,8 @@ impl Frame {
}

fn replace_current(&mut self, pipeline_id: PipelineId) -> FrameState {
replace(&mut self.current, FrameState::new(pipeline_id, self.id))
let instant = self.current.instant;
replace(&mut self.current, FrameState::new_with_instant(instant, pipeline_id, self.id))
}
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.