nsIFrame should provide 'normal' version of the logical coordinate getters

NEW
Unassigned

Status

()

Core
Layout
4 years ago
4 years ago

People

(Reporter: seth, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
nsFrame exposes GetRect() and GetPosition(), which report information about the frame's size and location. It also exposes GetNormalRect() and GetNormalPosition(), which report the same information as it would be if relative positioning had not been applied. This is used extensively in some parts of the layout code.

We've recently added new logical coordinate getters such as BStart() and GetLogicalPosition(). It would be very useful if we added "normal" variations of these which called GetNormalRect() and GetNormalPosition() under the hood.
(Reporter)

Comment 1

4 years ago
I've added a dependency on bug 35168 because the modifications to nsTableFrame::GetLogicalBaseline() added in part 2 are very awkward, and would be made much simpler if we had "normal" logical coordinate getters. We should update that code when we add the getters.
(Reporter)

Comment 2

4 years ago
(Actually this depends on bug 35168 anyway, since it adds GetNormalRect(), which we'll probably want to use in this bug.)
You need to log in before you can comment on or make changes to this bug.