bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

Make frame's Reflow responsible for setting its own mRect width/height

NEW
Unassigned

Status

()

Core
Layout
11 years ago
11 years ago

People

(Reporter: fantasai, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
GetOverflowRect() right now sometimes returns bogus data while the frame is in reflow because
  1. it uses mRect as a space optimization when mRect == overflowRect
  2. the overflow rect is set when overflowRect != aDesiredSize
  3. aDesiredSize != mRect until the frame's parent sets its size+position

This is a bit silly, so if it's possible, I think we should either make Reflow responsible for setting the frame's width and height directly (so it can set mRect and overflowRect at the same time) or make the parent responsible for setting both mRect and the overflowRect.
You need to log in before you can comment on or make changes to this bug.