mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
style: Add support for resolving default computed styles.
This commit is contained in:
parent
1f323f8848
commit
cc44f05f44
9 changed files with 2784 additions and 2437 deletions
|
@ -25,6 +25,7 @@ use style::font_metrics::ServoMetricsProvider;
|
|||
use style::properties::{CascadeFlags, ServoComputedValues};
|
||||
use style::selector_parser::{PseudoElement, PseudoElementCascadeType, SelectorImpl};
|
||||
use style::stylearc::Arc;
|
||||
use style::stylist::RuleInclusion;
|
||||
use webrender_traits::ClipId;
|
||||
|
||||
#[derive(Copy, PartialEq, Clone, Debug)]
|
||||
|
@ -423,6 +424,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug +
|
|||
&context.guards,
|
||||
unsafe { &self.unsafe_get() },
|
||||
&style_pseudo,
|
||||
RuleInclusion::All,
|
||||
data.styles().primary.values(),
|
||||
&ServoMetricsProvider)
|
||||
.unwrap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue