diff options
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r-- | components/layout/fragment.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index 841ed1f6b1c..0335fab7f5a 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -351,10 +351,12 @@ impl TableColumnFragmentInfo { impl Fragment { /// Constructs a new `Fragment` instance for the given node. /// + /// This does *not* construct the text for generated content. See comments in + /// `FlowConstructor::build_specific_fragment_info_for_node()` for more details. + /// /// Arguments: /// /// * `constructor`: The flow constructor. - /// /// * `node`: The node to create a fragment for. pub fn new(constructor: &mut FlowConstructor, node: &ThreadSafeLayoutNode) -> Fragment { let style = node.style().clone(); @@ -373,7 +375,8 @@ impl Fragment { } /// Constructs a new `Fragment` instance from a specific info. - pub fn new_from_specific_info(node: &ThreadSafeLayoutNode, specific: SpecificFragmentInfo) -> Fragment { + pub fn new_from_specific_info(node: &ThreadSafeLayoutNode, specific: SpecificFragmentInfo) + -> Fragment { let style = node.style().clone(); let writing_mode = style.writing_mode; Fragment { |