mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fix rustdoc warnings in components/layout 2020/positioned.rs
(#31592)
* fixed typo in PositioningContext Signed-off-by: Wepngong Maureen <maureenwepngong@gmail.com> * fixed unresolved link to unresolved link to adjust_static_position_of_hoisted_fragments function Signed-off-by: Wepngong Maureen <maureenwepngong@gmail.com> * fixed unresolved link to unresolved link to len() function of PositioningContext Signed-off-by: Wepngong Maureen <maureenwepngong@gmail.com> --------- Signed-off-by: Wepngong Maureen <maureenwepngong@gmail.com>
This commit is contained in:
parent
0768bba5b9
commit
f64409dbfb
1 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ impl PositioningContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a [PositioninContext] to use for laying out a subtree. The idea is that
|
/// Create a [PositioningContext] to use for laying out a subtree. The idea is that
|
||||||
/// when subtree layout is finished, the newly hoisted boxes can be processed
|
/// when subtree layout is finished, the newly hoisted boxes can be processed
|
||||||
/// (normally adjusting their static insets) and then appended to the parent
|
/// (normally adjusting their static insets) and then appended to the parent
|
||||||
/// [PositioningContext].
|
/// [PositioningContext].
|
||||||
|
@ -182,7 +182,7 @@ impl PositioningContext {
|
||||||
self.adjust_static_position_of_hoisted_fragments_with_offset(start_offset, index);
|
self.adjust_static_position_of_hoisted_fragments_with_offset(start_offset, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See documentation for [adjust_static_position_of_hoisted_fragments].
|
/// See documentation for [PositioningContext::adjust_static_position_of_hoisted_fragments].
|
||||||
pub(crate) fn adjust_static_position_of_hoisted_fragments_with_offset(
|
pub(crate) fn adjust_static_position_of_hoisted_fragments_with_offset(
|
||||||
&mut self,
|
&mut self,
|
||||||
start_offset: &LogicalVec2<CSSPixelLength>,
|
start_offset: &LogicalVec2<CSSPixelLength>,
|
||||||
|
@ -388,7 +388,7 @@ impl PositioningContext {
|
||||||
|
|
||||||
/// Truncate this [PositioningContext] to the given [PositioningContextLength]. This
|
/// Truncate this [PositioningContext] to the given [PositioningContextLength]. This
|
||||||
/// is useful for "unhoisting" boxes in this context and returning it to the state at
|
/// is useful for "unhoisting" boxes in this context and returning it to the state at
|
||||||
/// the time that [`len()`] was called.
|
/// the time that [`PositioningContext::len()`] was called.
|
||||||
pub(crate) fn truncate(&mut self, length: &PositioningContextLength) {
|
pub(crate) fn truncate(&mut self, length: &PositioningContextLength) {
|
||||||
if let Some(vec) = self.for_nearest_positioned_ancestor.as_mut() {
|
if let Some(vec) = self.for_nearest_positioned_ancestor.as_mut() {
|
||||||
vec.truncate(length.for_nearest_positioned_ancestor);
|
vec.truncate(length.for_nearest_positioned_ancestor);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue