Skip to content

Commit

Permalink
Don't take measurements from non-primary fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmabit committed Jan 13, 2017
1 parent af633b2 commit 2cd5384
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/layout/query.rs
Expand Up @@ -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
Expand Down

0 comments on commit 2cd5384

Please sign in to comment.