mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update rust-selectors
This commit is contained in:
parent
9eb3cc2a24
commit
9e1a674b16
12 changed files with 153 additions and 168 deletions
|
@ -19,9 +19,9 @@ use wrapper::{PostorderNodeMutTraversal, ThreadSafeLayoutNode, UnsafeLayoutNode}
|
|||
use wrapper::{PreorderDomTraversal, PostorderDomTraversal};
|
||||
|
||||
use selectors::bloom::BloomFilter;
|
||||
use selectors::Node;
|
||||
use util::opts;
|
||||
use util::tid::tid;
|
||||
use style::node::TNode;
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::mem;
|
||||
|
@ -164,7 +164,7 @@ impl<'a> PreorderDomTraversal for RecalcStyleForNode<'a> {
|
|||
StyleSharingResult::CannotShare(mut shareable) => {
|
||||
let mut applicable_declarations = ApplicableDeclarations::new();
|
||||
|
||||
if node.is_element() {
|
||||
if node.as_element().is_some() {
|
||||
// Perform the CSS selector matching.
|
||||
let stylist = unsafe { &*self.layout_context.shared.stylist };
|
||||
node.match_node(stylist,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue