Closed
Bug 363637
Opened 18 years ago
Closed 18 years ago
{inc}abs pos frame in rel pos RTL block has right:auto at left edge
Categories
(Core :: Layout: Positioned, defect)
Core
Layout: Positioned
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: dbaron, Assigned: bzbarsky)
References
()
Details
(Keywords: regression, rtl)
Attachments
(2 files, 1 obsolete file)
16.71 KB,
patch
|
Details | Diff | Splinter Review | |
2.02 KB,
patch
|
Details | Diff | Splinter Review |
In bug 328181 comment 17, Uri wrote (with correction rolled in):
However, the reflow branch also introduced a new regression: in the RTL lines
(3,4) of the "Absolute" and "Absolute, margins" sections of all three
testcases, the inner div is rendered outside the outer div, to its left.
I tried tracking this down, but I don't have enough time to properly learn the
code involved and understand where exactly the problem is.
(I suspect it might be due to GetNearestContainingBlock() returning a bogus
aContentArea, with a negative |right|, but I'm not really sure).
Steps to reproduce: load attachment 232963 [details]
Expected results: All 4 inner boxes visible in "Absolute" and "Absolute, margins" sections
Actual results: Two of the boxes are off the left edge of the screen.
I actually don't see how this ever worked unless we were doing extra reflows: CalculateHypotheticalBox calls GetNearestContainingBlock, which calls aFrame->GetSize(), but aFrame hasn't had its reflow finished yet, so its size hasn't been set yet.
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #248688 -
Flags: superreview?(dbaron)
Attachment #248688 -
Flags: review?(dbaron)
Reporter | ||
Comment 2•18 years ago
|
||
Comment on attachment 248688 [details] [diff] [review]
This fixes the problem for me
>+ /* XXXbz Could we assert that aFrame doesn't have NS_FRAME_IN_REFLOW set? */
Please do.
r+sr=dbaron
Attachment #248688 -
Flags: superreview?(dbaron)
Attachment #248688 -
Flags: superreview+
Attachment #248688 -
Flags: review?(dbaron)
Attachment #248688 -
Flags: review+
Assignee | ||
Comment 3•18 years ago
|
||
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•18 years ago
|
||
Fixed, and added to reftest.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
Assignee | ||
Comment 5•18 years ago
|
||
This is also needed for this to work. ;)
Attachment #248688 -
Attachment is obsolete: true
Comment 6•17 years ago
|
||
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
You need to log in
before you can comment on or make changes to this bug.
Description
•