mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Add support for skipping display fixup for pseudos.
This is needed for https://bugzilla.mozilla.org/show_bug.cgi?id=1346481
This commit is contained in:
parent
96a3bb5f16
commit
275865486e
4 changed files with 24 additions and 15 deletions
|
@ -21,7 +21,7 @@ use style::context::SharedStyleContext;
|
|||
use style::data::ElementData;
|
||||
use style::dom::{LayoutIterator, NodeInfo, PresentationalHintsSynthetizer, TNode};
|
||||
use style::dom::OpaqueNode;
|
||||
use style::properties::ServoComputedValues;
|
||||
use style::properties::{CascadeFlags, ServoComputedValues};
|
||||
use style::selector_parser::{PseudoElement, PseudoElementCascadeType, SelectorImpl};
|
||||
|
||||
#[derive(Copy, PartialEq, Clone, Debug)]
|
||||
|
@ -408,7 +408,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug +
|
|||
&style_pseudo,
|
||||
Some(data.styles().primary.values()),
|
||||
&context.default_computed_values,
|
||||
false);
|
||||
CascadeFlags::empty());
|
||||
data.styles_mut().pseudos
|
||||
.insert(style_pseudo.clone(), new_style);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue