style: Port the style crate to rust 2018.

Differential Revision: https://phabricator.services.mozilla.com/D80101
This commit is contained in:
Emilio Cobos Álvarez 2020-06-17 23:40:30 +00:00
parent 9b980e2f49
commit 8f215a8444
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
9 changed files with 18 additions and 14 deletions

View file

@ -371,7 +371,7 @@ trait PrivateMatchMethods: TElement {
// since we have no way to know whether the decendants
// need to be traversed at the beginning of the animation-only
// restyle).
let task = ::context::SequentialTask::process_post_animation(
let task = crate::context::SequentialTask::process_post_animation(
*self,
PostAnimationTasks::DISPLAY_CHANGED_FROM_NONE_FOR_SMIL,
);
@ -464,8 +464,11 @@ trait PrivateMatchMethods: TElement {
}
if !tasks.is_empty() {
let task =
::context::SequentialTask::update_animations(*self, before_change_style, tasks);
let task = crate::context::SequentialTask::update_animations(
*self,
before_change_style,
tasks,
);
context.thread_local.tasks.push(task);
}
}