mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Don't take measurements from non-primary fragments
This commit is contained in:
parent
af633b2778
commit
2cd538494d
1 changed files with 3 additions and 4 deletions
|
@ -549,10 +549,9 @@ impl FragmentBorderBoxIterator for ParentOffsetBorderBoxIterator {
|
|||
"Skipped at least one level in the flow tree!");
|
||||
}
|
||||
|
||||
if fragment.is_hypothetical() {
|
||||
// We're not interested in hypothetical fragments. The
|
||||
// corresponding block will show up later if this fragment
|
||||
// corresponds to the node we're looking for.
|
||||
if !fragment.is_primary_fragment() {
|
||||
// This fragment doesn't correspond to anything worth
|
||||
// taking measurements from.
|
||||
|
||||
if self.node_offset_box.is_none() {
|
||||
// If this is the only fragment in the flow, we need to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue