mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
style: Update StyleSource to use ArcUnion.
Bug: 1455784 Reviewed-by: Manishearth MozReview-Commit-ID: AT4sud9goGV
This commit is contained in:
parent
cbbefebdba
commit
48558e313a
7 changed files with 99 additions and 109 deletions
|
@ -3424,7 +3424,7 @@ where
|
|||
let source = node.style_source();
|
||||
|
||||
let declarations = if source.is_some() {
|
||||
source.read(cascade_level.guard(guards)).declaration_importance_iter()
|
||||
source.as_ref().unwrap().read(cascade_level.guard(guards)).declaration_importance_iter()
|
||||
} else {
|
||||
// The root node has no style source.
|
||||
DeclarationImportanceIterator::new(&[], &empty)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue