Auto merge of #16983 - emilio:indir-data, r=nox

style: Remove unneeded indirection in traversal code.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16983)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-05-23 04:58:53 -05:00 committed by GitHub
commit e24d96cdd0
2 changed files with 12 additions and 12 deletions

View file

@ -7,7 +7,6 @@
#![allow(unsafe_code)]
#![deny(missing_docs)]
use atomic_refcell::AtomicRefMut;
use cascade_info::CascadeInfo;
use context::{SelectorFlagsMap, SharedStyleContext, StyleContext};
use data::{ComputedStyle, ElementData, RestyleData};
@ -969,7 +968,7 @@ pub trait MatchMethods : TElement {
fn replace_rules(&self,
replacements: RestyleReplacements,
context: &StyleContext<Self>,
data: &mut AtomicRefMut<ElementData>)
data: &mut ElementData)
-> RulesChanged {
use properties::PropertyDeclarationBlock;
use shared_lock::Locked;