mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Split 123-character line
This commit is contained in:
parent
db5da15e79
commit
4825169fb0
1 changed files with 6 additions and 5 deletions
|
@ -564,11 +564,12 @@ impl FragmentBorderBoxIterator for ParentOffsetBorderBoxIterator {
|
||||||
if fragment.style.get_box().position == computed_values::position::T::fixed {
|
if fragment.style.get_box().position == computed_values::position::T::fixed {
|
||||||
self.parent_nodes.clear();
|
self.parent_nodes.clear();
|
||||||
}
|
}
|
||||||
} else if let Some((inline_context, node_position)) = fragment.inline_context.as_ref().and_then(|inline_context| {
|
} else if let Some((inline_context, node_position)) =
|
||||||
inline_context.nodes.iter().position(|node| node.address == self.node_address).map(|node_position| {
|
fragment.inline_context.as_ref().and_then(|inline_context| {
|
||||||
(inline_context, node_position)
|
inline_context.nodes.iter().position(|node| node.address == self.node_address).map(|node_position| {
|
||||||
})
|
(inline_context, node_position)
|
||||||
}) {
|
})
|
||||||
|
}) {
|
||||||
// TODO: Handle cases where the `offsetParent` is an inline
|
// TODO: Handle cases where the `offsetParent` is an inline
|
||||||
// element. This will likely be impossible until
|
// element. This will likely be impossible until
|
||||||
// https://github.com/servo/servo/issues/13982 is fixed. It would
|
// https://github.com/servo/servo/issues/13982 is fixed. It would
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue