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

Try to fix incremental_trailing_whitespace_a.html #14285

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

Always

Just for now

Prev

compositor: Process animations before asking the constellation for th…

…e image.

The ready state could depend on animations being processed (as in
incremental_trailing_whitespace_a.html), and that will never happen with the
previous code.
  • Loading branch information
emilio committed Nov 19, 2016
commit d6dc6d8dbd1332b4a566672a3dd97b930ac01228
@@ -1418,11 +1418,15 @@ impl<Window: WindowMethods> IOCompositor<Window> {
};

if wait_for_stable_image {
// If there are animations active, tick those and continue waiting
// for all animations to complete before bothering the
// constellation.
if self.animations_active() {
self.process_animations();
return Err(UnableToComposite::NotReadyToPaintImage(NotReadyToPaint::AnimationsActive));
}
match self.is_ready_to_paint_image_output() {
Ok(()) => {
// The current image is ready to output. However, if there are animations active,
// tick those instead and continue waiting for the image output to be stable AND
// all active animations to complete.
if self.animations_active() {
self.process_animations();
return Err(UnableToComposite::NotReadyToPaintImage(NotReadyToPaint::AnimationsActive));
@@ -75,6 +75,7 @@ enum ReadyToSave {
PendingFrames,
WebFontNotLoaded,
DocumentLoading,
UnknownState,
EpochMismatch,
PipelineUnknown,
Ready,
@@ -2183,9 +2184,10 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
// See if this pipeline has reached idle script state yet.
match self.document_states.get(&frame.current.pipeline_id) {
Some(&DocumentState::Idle) => {}
Some(&DocumentState::Pending) | None => {
Some(&DocumentState::Pending) => {
return ReadyToSave::DocumentLoading;
}
None => return ReadyToSave::UnknownState,
}

// Check the visible rectangle for this pipeline. If the constellation has received a
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.