style: Remove TNode::set_can_be_fragmented and TNode::can_be_fragmented.

Replace them instead by a computed value flag, the same way as the
IS_IN_DISPLAY_NONE_SUBTREE flag works.
This commit is contained in:
Emilio Cobos Álvarez 2018-01-04 14:45:54 +01:00
parent 10a1e1e15f
commit f3ea248188
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
13 changed files with 46 additions and 81 deletions

View file

@ -240,8 +240,6 @@ pub trait ThreadSafeLayoutNode: Clone + Copy + Debug + GetLayoutData + NodeInfo
/// data flags, and we have this annoying trait separation between script and layout :-(
unsafe fn unsafe_get(self) -> Self::ConcreteNode;
fn can_be_fragmented(&self) -> bool;
fn node_text_content(&self) -> String;
/// If the insertion point is within this node, returns it. Otherwise, returns `None`.