mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Add a Stylo API for reparenting a given style.
Servo side of part 4 of the fix for Gecko bug 1324619. r=emilio
This commit is contained in:
parent
8db39f8fde
commit
7161fff1b8
6 changed files with 189 additions and 36 deletions
|
@ -191,7 +191,7 @@ pub struct CascadeInputs {
|
|||
|
||||
impl CascadeInputs {
|
||||
/// Construct inputs from previous cascade results, if any.
|
||||
pub fn new_from_style(style: &Arc<ComputedValues>) -> Self {
|
||||
pub fn new_from_style(style: &ComputedValues) -> Self {
|
||||
CascadeInputs {
|
||||
rules: style.rules.clone(),
|
||||
visited_rules: style.get_visited_style().and_then(|v| v.rules.clone()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue