Closed
Bug 1055894
Opened 11 years ago
Closed 2 years ago
nsIFrame should provide 'normal' version of the logical coordinate getters
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
113 Branch
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: seth, Assigned: TYLin)
References
Details
Attachments
(1 file)
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•11 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•11 years ago
|
||
(Actually this depends on bug 35168 anyway, since it adds GetNormalRect(), which we'll probably want to use in this bug.)
Updated•2 years ago
|
Severity: normal → S3
Assignee | ||
Comment 3•2 years ago
|
||
We've already had GetLogicalNormalPosition().
Assignee | ||
Comment 4•2 years ago
|
||
This patch makes the API nicer, and shouldn't change the behavior.
Updated•2 years ago
|
Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
Pushed by tlin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7437637d0b5c
Add GetLogicalNormalRect() and adapt some callers of GetNormalRect(). r=emilio
Comment 6•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox113:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•