Rename cascade_with_replacements to replace_rules.

That's because the function does not invoke cascade() at all.
This commit is contained in:
Hiroyuki Ikezoe 2017-04-11 16:31:58 +09:00
parent ca3cd64d6b
commit c316594bd3
2 changed files with 6 additions and 6 deletions

View file

@ -906,11 +906,11 @@ pub trait MatchMethods : TElement {
/// Updates the rule nodes without re-running selector matching, using just
/// the rule tree. Returns true if the rule nodes changed.
fn cascade_with_replacements(&self,
hint: RestyleHint,
context: &StyleContext<Self>,
data: &mut AtomicRefMut<ElementData>)
-> bool {
fn replace_rules(&self,
hint: RestyleHint,
context: &StyleContext<Self>,
data: &mut AtomicRefMut<ElementData>)
-> bool {
use properties::PropertyDeclarationBlock;
use shared_lock::Locked;