Don't persist styles on elements not in the document.

This commit is contained in:
Cameron McCormack 2016-12-29 15:04:45 +08:00
parent b5f3d7dd41
commit be1a73dac5
5 changed files with 24 additions and 4 deletions

View file

@ -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