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

style: Remove some no longer needed type arguments. #17746

Merged
merged 1 commit into from Jul 15, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -611,7 +611,7 @@ where

// Compute style for this element if necessary.
if compute_self {
match compute_style(traversal, traversal_data, context, element, data) {
match compute_style(traversal_data, context, element, data) {
ChildCascadeRequirement::MustCascadeChildren => {
hint |= RECASCADE_SELF;
}
@@ -680,7 +680,7 @@ where
let reconstructed_ancestor =
data.restyle.reconstructed_self_or_ancestor();

preprocess_children::<E, D>(
preprocess_children::<E>(
context,
element,
propagated_hint,
@@ -720,16 +720,14 @@ where
}
}

fn compute_style<E, D>(
_traversal: &D,
fn compute_style<E>(
traversal_data: &PerLevelTraversalData,
context: &mut StyleContext<E>,
element: E,
data: &mut ElementData
) -> ChildCascadeRequirement
where
E: TElement,
D: DomTraversal<E>,
{
use data::RestyleKind::*;
use sharing::StyleSharingResult::*;
@@ -815,15 +813,14 @@ where
)
}

fn preprocess_children<E, D>(
fn preprocess_children<E>(
context: &mut StyleContext<E>,
element: E,
propagated_hint: RestyleHint,
reconstructed_ancestor: bool,
)
where
E: TElement,
D: DomTraversal<E>,
{
trace!("preprocess_children: {:?}", element);

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