mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #16909 - emilio:simplify-cascade, r=bholley
style: Refactor the cascade function. The `cascade_primary_or_pseudo` function was nice when we shared more code, but right now I think it just makes it harder to understand what's going on. <!-- 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/16909) <!-- Reviewable:end -->
This commit is contained in:
commit
c6c960a661
6 changed files with 72 additions and 94 deletions
|
@ -404,9 +404,9 @@ impl<'le> TElement for ServoLayoutElement<'le> {
|
|||
|
||||
#[inline]
|
||||
fn existing_style_for_restyle_damage<'a>(&'a self,
|
||||
current_cv: &'a Arc<ComputedValues>,
|
||||
current_cv: &'a ComputedValues,
|
||||
_pseudo_element: Option<&PseudoElement>)
|
||||
-> Option<&'a Arc<ComputedValues>> {
|
||||
-> Option<&'a ComputedValues> {
|
||||
Some(current_cv)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue