mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Rename cascade_with_replacements to replace_rules.
That's because the function does not invoke cascade() at all.
This commit is contained in:
parent
ca3cd64d6b
commit
c316594bd3
2 changed files with 6 additions and 6 deletions
|
@ -906,11 +906,11 @@ pub trait MatchMethods : TElement {
|
||||||
|
|
||||||
/// Updates the rule nodes without re-running selector matching, using just
|
/// Updates the rule nodes without re-running selector matching, using just
|
||||||
/// the rule tree. Returns true if the rule nodes changed.
|
/// the rule tree. Returns true if the rule nodes changed.
|
||||||
fn cascade_with_replacements(&self,
|
fn replace_rules(&self,
|
||||||
hint: RestyleHint,
|
hint: RestyleHint,
|
||||||
context: &StyleContext<Self>,
|
context: &StyleContext<Self>,
|
||||||
data: &mut AtomicRefMut<ElementData>)
|
data: &mut AtomicRefMut<ElementData>)
|
||||||
-> bool {
|
-> bool {
|
||||||
use properties::PropertyDeclarationBlock;
|
use properties::PropertyDeclarationBlock;
|
||||||
use shared_lock::Locked;
|
use shared_lock::Locked;
|
||||||
|
|
||||||
|
|
|
@ -711,7 +711,7 @@ fn compute_style<E, D>(_traversal: &D,
|
||||||
}
|
}
|
||||||
CascadeWithReplacements(hint) => {
|
CascadeWithReplacements(hint) => {
|
||||||
let _rule_nodes_changed =
|
let _rule_nodes_changed =
|
||||||
element.cascade_with_replacements(hint, context, &mut data);
|
element.replace_rules(hint, context, &mut data);
|
||||||
element.cascade_primary_and_pseudos(context, &mut data);
|
element.cascade_primary_and_pseudos(context, &mut data);
|
||||||
}
|
}
|
||||||
CascadeOnly => {
|
CascadeOnly => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue