mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Don't persist styles on elements not in the document.
This commit is contained in:
parent
b5f3d7dd41
commit
be1a73dac5
5 changed files with 24 additions and 4 deletions
|
@ -99,6 +99,8 @@ pub trait TNode : Sized + Copy + Clone + Debug + NodeInfo {
|
|||
unsafe fn set_can_be_fragmented(&self, value: bool);
|
||||
|
||||
fn parent_node(&self) -> Option<Self>;
|
||||
|
||||
fn is_in_doc(&self) -> bool;
|
||||
}
|
||||
|
||||
/// Wrapper to output the ElementData along with the node when formatting for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue