mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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!");
|
"Skipped at least one level in the flow tree!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if fragment.is_hypothetical() {
|
if !fragment.is_primary_fragment() {
|
||||||
// We're not interested in hypothetical fragments. The
|
// This fragment doesn't correspond to anything worth
|
||||||
// corresponding block will show up later if this fragment
|
// taking measurements from.
|
||||||
// corresponds to the node we're looking for.
|
|
||||||
|
|
||||||
if self.node_offset_box.is_none() {
|
if self.node_offset_box.is_none() {
|
||||||
// If this is the only fragment in the flow, we need to
|
// If this is the only fragment in the flow, we need to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue