mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
style: Remove unneeded indirection in default_computed_values.
This commit is contained in:
parent
7db36abf67
commit
9c0424cca4
3 changed files with 7 additions and 7 deletions
|
@ -295,7 +295,7 @@ impl Stylist {
|
|||
pub fn precomputed_values_for_pseudo(&self,
|
||||
pseudo: &PseudoElement,
|
||||
parent: Option<&Arc<ComputedValues>>,
|
||||
default: &Arc<ComputedValues>,
|
||||
default: &ComputedValues,
|
||||
cascade_flags: CascadeFlags)
|
||||
-> ComputedStyle {
|
||||
debug_assert!(SelectorImpl::pseudo_element_cascade_type(pseudo).is_precomputed());
|
||||
|
@ -341,7 +341,7 @@ impl Stylist {
|
|||
pub fn style_for_anonymous_box(&self,
|
||||
pseudo: &PseudoElement,
|
||||
parent_style: &Arc<ComputedValues>,
|
||||
default_style: &Arc<ComputedValues>)
|
||||
default_style: &ComputedValues)
|
||||
-> Arc<ComputedValues> {
|
||||
// For most (but not all) pseudo-elements, we inherit all values from the parent.
|
||||
let inherit_all = match *pseudo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue